org.apache.maven.plugin.coreit
Class AbstractLoadMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.coreit.AbstractLoadMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- LoadDependenciesMojo, LoadMojo
public abstract class AbstractLoadMojo
- extends AbstractMojo
Loads classes and/or resources from a class loader and records the results in a properties file.
- Version:
- $Id: AbstractLoadMojo.java 799883 2009-08-01 15:06:37Z bentmann $
- Author:
- Benjamin Bentmann
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
classNames
protected String classNames
- The comma separated set of classes to load. For each specified qualified class name
QCN
that was
successfully loaded, the generated properties files will contain a key named QCN
. The value of this
key will be the hash code of the requested class. In addition, a key named QCN.methods
holds the
comma separated list of all public methods declared directly in that class, in alphabetic order and possibly with
duplicates to account for overloaded methods.
- Is defined by:
- expression:
- ${clsldr.classNames}
resourcePaths
protected String resourcePaths
- The comma separated set of resources to load. For each specified absolute resource path
ARP
that was
successfully loaded, the generated properties files will contain a key named ARP
whose value gives
the URL to the resource. In addition, the keys ARP.count
, ARP.0
, ARP.1
etc. will enumerate all URLs matching the resource name.
- Is defined by:
- expression:
- ${clsldr.resourcePaths}
AbstractLoadMojo
public AbstractLoadMojo()
execute
protected void execute(File outputFile,
ClassLoader classLoader)
throws MojoExecutionException
- Loads the classes/resources.
- Parameters:
outputFile
- The path to the properties file to generate, must not be null
.classLoader
- The class loader to use, must not be null
.
- Throws:
MojoExecutionException
- If the output file could not be created.
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.