|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.jalopy.Locator
public class Locator
Performs Locator services for the *Location
parameters in the
Reports.
Copied from the maven-checkstyle-plugin.
Constructor Summary | |
---|---|
Locator(org.apache.maven.plugin.logging.Log log,
File resolveToDir)
Create a Locator object. |
Method Summary | |
---|---|
File |
resolveLocation(String location,
String localfile)
Attempts to resolve a location parameter into a real file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Locator(org.apache.maven.plugin.logging.Log log, File resolveToDir)
log
- the logger object to log with.resolveToDir
- the directory to resolve resources into.Method Detail |
---|
public File resolveLocation(String location, String localfile) throws IOException
Attempts to resolve a location parameter into a real file.
Checks a location string to for a resource, URL, or File that matches. If a resource or URL is found, then a local file is created with that locations contents.
location
- the location string to match against.localfile
- the local file to use in case of resource or URL.
IOException
- if file is unable to be found or copied into localfile
destination.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |