org.apache.maven.plugin.pmd
public class Locator extends Object
*Location
parameters in the
Reports.
Constructor Summary | |
---|---|
Locator(Log log)
Create a Locator object.
|
Method Summary | |
---|---|
File | resolveLocation(String location, String localfile) Attempts to resolve a location parameter into a real file. |
Parameters: logger the logger object to log with.
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.
Parameters: location the location string to match against. localfile the local file to use in case of resource or URL.
Returns: the File of the resolved location.
Throws: IOException if file is unable to be found or copied into localfile
destination.