Class ResourceFinder
- java.lang.Object
-
- com.google.code.mojo.license.util.resource.ResourceFinder
-
public final class ResourceFinder extends Object
Date: 26-Feb-2008
Author: Mathieu Carbou (mathieu.carbou@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description ResourceFinder(File basedir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
findResource(String resource)
Find a resource by searching:
1.void
setCompileClassPath(List<String> classpath)
void
setPluginClassPath(ClassLoader classLoader)
-
-
-
Constructor Detail
-
ResourceFinder
public ResourceFinder(File basedir)
-
-
Method Detail
-
setPluginClassPath
public void setPluginClassPath(ClassLoader classLoader)
-
findResource
public URL findResource(String resource) throws org.apache.maven.plugin.MojoFailureException
Find a resource by searching:
1. In the filesystem, relative to basedir
2. In the filesystem, as an absolute path (or relative to current execution directory)
3. In project classpath
4. In plugin classpath
5. As a URL- Parameters:
resource
- The resource to get- Returns:
- A valid URL
- Throws:
org.apache.maven.plugin.MojoFailureException
- If the resource is not found
-
-