public abstract class AbstractLoadMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected String |
classNames
The comma separated set of classes to load.
|
protected String |
resourcePaths
The comma separated set of resources to load.
|
Constructor and Description |
---|
AbstractLoadMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(File outputFile,
ClassLoader classLoader)
Loads the classes/resources.
|
getLog, getPluginContext, setLog, setPluginContext
protected String classNames
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.protected String resourcePaths
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.protected void execute(File outputFile, ClassLoader classLoader) throws org.apache.maven.plugin.MojoExecutionException
outputFile
- The path to the properties file to generate, must not be null
.classLoader
- The class loader to use, must not be null
.org.apache.maven.plugin.MojoExecutionException
- If the output file could not be created.Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.