|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jomc.mojo.AbstractJomcMojo
org.jomc.mojo.AbstractResourcesWriteMojo
public abstract class AbstractResourcesWriteMojo
Base class for writing resource files.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractResourcesWriteMojo()
Creates a new AbstractResourcesWriteMojo instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractResourcesWriteMojo()
AbstractResourcesWriteMojo
instance.
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |