Package org.apache.maven.model.path
Interface PathTranslator
-
- All Known Implementing Classes:
DefaultPathTranslator
public interface PathTranslator
Resolves relative paths against a specific base directory.- Author:
- Jason van Zyl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
alignToBaseDirectory(String path, File basedir)
Resolves the specified path against the given base directory.
-
-
-
Method Detail
-
alignToBaseDirectory
String alignToBaseDirectory(String path, File basedir)
Resolves the specified path against the given base directory. The resolved path will be absolute and uses the platform-specific file separator if a base directory is given. Otherwise, the input path will be returned unaltered.- Parameters:
path
- The path to resolve, may benull
.basedir
- The base directory to resolve relative paths against, may benull
.- Returns:
- The resolved path or
null
if the input path wasnull
.
-
-