Class DefaultPathTranslator
java.lang.Object
org.apache.maven.model.path.DefaultPathTranslator
- All Implemented Interfaces:
- PathTranslator
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultPathTranslator
extends Object
implements PathTranslator
Deprecated.
Resolves relative paths against a specific base directory.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionalignToBaseDirectory(String path, File basedir) Deprecated.Resolves the specified path against the given base directory.
- 
Constructor Details- 
DefaultPathTranslatorpublic DefaultPathTranslator()Deprecated.
 
- 
- 
Method Details- 
alignToBaseDirectoryDeprecated.Description copied from interface:PathTranslatorResolves 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.- Specified by:
- alignToBaseDirectoryin interface- PathTranslator
- Parameters:
- path- The path to resolve, may be- null.
- basedir- The base directory to resolve relative paths against, may be- null.
- Returns:
- The resolved path or nullif the input path wasnull.
 
 
- 
org.apache.maven.api.services.ModelBuilderinstead