org.apache.maven.plugin.pmd

Class Locator

public class Locator extends Object

Performs Locator services for the *Location parameters in the Reports.

Author: Joakim Erdfelt

Constructor Summary
Locator(Log log)
Create a Locator object.
Method Summary
FileresolveLocation(String location, String localfile)

Attempts to resolve a location parameter into a real file.

Constructor Detail

Locator

public Locator(Log log)
Create a Locator object.

Parameters: logger the logger object to log with.

Method Detail

resolveLocation

public File resolveLocation(String location, String localfile)

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.

Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.