org.apache.maven.configuration
Class BasedirBeanConfigurationPathTranslator
java.lang.Object
   org.apache.maven.configuration.BasedirBeanConfigurationPathTranslator
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
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BasedirBeanConfigurationPathTranslator
public BasedirBeanConfigurationPathTranslator(File basedir)
- Creates a new path translator using the specified base directory.
 
- Parameters:
- basedir- The base directory to resolve relative paths against, may be- nullto disable path
            translation.
 
translatePath
public File translatePath(File path)
- Description copied from interface: BeanConfigurationPathTranslator
- Translates the specified path.
 
- 
- Specified by:
- translatePathin interface- BeanConfigurationPathTranslator
 
- 
- Parameters:
- path- The path to translate, may be- null.
- Returns:
- The translated path or nullif none.
 
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.