Package org.apache.maven.configuration
Class BasedirBeanConfigurationPathTranslator
- java.lang.Object
-
- org.apache.maven.configuration.BasedirBeanConfigurationPathTranslator
-
- All Implemented Interfaces:
BeanConfigurationPathTranslator
public class BasedirBeanConfigurationPathTranslator extends java.lang.Object implements BeanConfigurationPathTranslator
A path translator that resolves relative paths against a specific base directory.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
basedir
-
Constructor Summary
Constructors Constructor Description BasedirBeanConfigurationPathTranslator(java.io.File basedir)
Creates a new path translator using the specified base directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
translatePath(java.io.File path)
Translates the specified path.
-
-
-
Constructor Detail
-
BasedirBeanConfigurationPathTranslator
public BasedirBeanConfigurationPathTranslator(java.io.File basedir)
Creates a new path translator using the specified base directory.- Parameters:
basedir
- The base directory to resolve relative paths against, may benull
to disable path translation.
-
-
Method Detail
-
translatePath
public java.io.File translatePath(java.io.File path)
Description copied from interface:BeanConfigurationPathTranslator
Translates the specified path.- Specified by:
translatePath
in interfaceBeanConfigurationPathTranslator
- Parameters:
path
- The path to translate, may benull
.- Returns:
- The translated path or
null
if none.
-
-