|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xsltmp.util.FileResolver
public class FileResolver
Resolves a File corresponding to a given path either as absolute path, from project basedir or from classpath.
First tries to resolve the path as absolute path.
Then tries to relate the path to project basedir.
Then iterates over all compile classpath elements and tries to relate the
path to each one of them. If the classpath element is not a directory, but an
archive file, tries to extract the requested file from the archive. See
UnArchiverHelper for details on how extract is performed.
| Constructor Summary | |
|---|---|
FileResolver(org.apache.maven.plugin.logging.Log log,
org.apache.maven.project.MavenProject project,
UnArchiverHelper helper)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
exists(File file)
Check existence of a file. |
UnArchiverHelper |
getHelper()
|
org.apache.maven.plugin.logging.Log |
getLog()
|
org.apache.maven.project.MavenProject |
getProject()
|
File |
resolve(String filePath)
Get a file path as a File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileResolver(org.apache.maven.plugin.logging.Log log,
org.apache.maven.project.MavenProject project,
UnArchiverHelper helper)
log - Maven logproject - Maven projecthelper - UnArchiver helper| Method Detail |
|---|
public org.apache.maven.plugin.logging.Log getLog()
public org.apache.maven.project.MavenProject getProject()
public UnArchiverHelper getHelper()
public File resolve(String filePath)
filePath - The relative path of the file
protected boolean exists(File file)
file - The File to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||