Package org.apache.maven.model.root
Class DefaultRootLocator
- java.lang.Object
-
- org.apache.maven.model.root.DefaultRootLocator
-
- All Implemented Interfaces:
RootLocator
@Named public class DefaultRootLocator extends java.lang.Object implements RootLocator
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.model.root.RootLocator
UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description DefaultRootLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathfindMandatoryRoot(java.nio.file.Path basedir)java.nio.file.PathfindRoot(java.nio.file.Path basedir)protected java.nio.file.PathgetCanonicalPath(java.nio.file.Path path)protected java.util.Optional<java.nio.file.Path>getRootDirectoryFallback()booleanisRootDirectory(java.nio.file.Path dir)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.model.root.RootLocator
getNoRootMessage
-
-
-
-
Method Detail
-
findRoot
public java.nio.file.Path findRoot(java.nio.file.Path basedir)
- Specified by:
findRootin interfaceRootLocator
-
findMandatoryRoot
public java.nio.file.Path findMandatoryRoot(java.nio.file.Path basedir)
- Specified by:
findMandatoryRootin interfaceRootLocator
-
getRootDirectoryFallback
protected java.util.Optional<java.nio.file.Path> getRootDirectoryFallback()
-
getCanonicalPath
protected java.nio.file.Path getCanonicalPath(java.nio.file.Path path)
-
isRootDirectory
public boolean isRootDirectory(java.nio.file.Path dir)
-
-