@Component(role=PathTranslator.class) public class DefaultPathTranslator extends Object implements PathTranslator
Constructor and Description |
---|
DefaultPathTranslator() |
Modifier and Type | Method and Description |
---|---|
String |
alignToBaseDirectory(String path,
File basedir)
Resolves the specified path against the given base directory.
|
public DefaultPathTranslator()
public String alignToBaseDirectory(String path, File basedir)
PathTranslator
alignToBaseDirectory
in interface PathTranslator
path
- The path to resolve, may be null
.basedir
- The base directory to resolve relative paths against, may be null
.null
if the input path was null
.Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.