public abstract class AbstractResourcesWriteMojo extends AbstractJomcMojo
Constructor and Description |
---|
AbstractResourcesWriteMojo()
Creates a new
AbstractResourcesWriteMojo instance. |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addMavenResource(MavenProject mavenProject,
org.apache.maven.model.Resource resource)
Adds a resource to a
MavenProjecŧ . |
protected void |
executeTool()
Executes this tool.
|
protected abstract ClassLoader |
getResourcesClassLoader()
Gets the class loader to use for writing resource files.
|
protected abstract File |
getResourcesDirectory()
Gets the directory to write the resource files to.
|
protected abstract String |
getResourcesModuleName()
Gets the name of the module to write resource files of.
|
protected abstract File |
getResourcesOutputDirectory()
Gets the directory to copy resource files to.
|
assertValidParameters, assertValidResources, createClassFileProcessor, createJomcTool, createModelContext, createObject, createResourceFileProcessor, createSourceFileProcessor, execute, getAbsoluteFile, getDirectory, getExecutionStrategy, getGoal, getMainClassLoader, getMainClasspathElements, getMavenProject, getMavenSession, getModel, getModel, getModuleName, getOutputDirectory, getProperties, getReportOutputDirectory, getResource, getSessionDirectory, getSourceDirectory, getTestClassLoader, getTestClasspathElements, getTestModuleName, getTestOutputDirectory, getTestSourceDirectory, getTransformer, isClassProcessingEnabled, isExecutionPermitted, isLoggable, isModelObjectClasspathResolutionEnabled, isModelProcessingEnabled, isResourceProcessingEnabled, isSourceProcessingEnabled, isVerbose, log, log, logMissingModule, logProcessingModel, logProcessingModule, logSeparator, logSeparator, logToolSuccess, setClassProcessingEnabled, setModelObjectClasspathResolutionEnabled, setModelProcessingEnabled, setResourceProcessingEnabled, setSourceProcessingEnabled, setupJomcTool, setupModelContext, setVerbose
getLog, getPluginContext, setLog, setPluginContext
public AbstractResourcesWriteMojo()
AbstractResourcesWriteMojo
instance.protected final void executeTool() throws Exception
AbstractJomcMojo
executeTool
in class AbstractJomcMojo
Exception
- if execution of this tool fails.protected abstract String getResourcesModuleName() throws MojoExecutionException
MojoExecutionException
- if getting the name fails.protected abstract ClassLoader getResourcesClassLoader() throws MojoExecutionException
MojoExecutionException
- if getting the class loader fails.protected abstract File getResourcesDirectory() throws MojoExecutionException
MojoExecutionException
- if getting the directory fails.protected abstract File getResourcesOutputDirectory() throws MojoExecutionException
MojoExecutionException
- if getting the directory fails.protected abstract void addMavenResource(MavenProject mavenProject, org.apache.maven.model.Resource resource) throws MojoExecutionException
MavenProjecŧ
.mavenProject
- The MavenProject
to add a resource to.resource
- The Resource
to add.MojoExecutionException
- if adding the resource fails.Copyright © 2005-2013 The JOMC Project. All Rights Reserved.