Package org.apache.maven.configuration
Class BasedirBeanConfigurationPathTranslator
java.lang.Object
org.apache.maven.configuration.BasedirBeanConfigurationPathTranslator
- All Implemented Interfaces:
BeanConfigurationPathTranslator
public class BasedirBeanConfigurationPathTranslator
extends Object
implements BeanConfigurationPathTranslator
A path translator that resolves relative paths against a specific base directory.
- Author:
- Benjamin Bentmann
-
Constructor Summary
ConstructorDescriptionCreates a new path translator using the specified base directory. -
Method Summary
-
Constructor Details
-
BasedirBeanConfigurationPathTranslator
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 Details
-
translatePath
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.
-