|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo
public abstract class AbstractHpiMojo
| Field Summary | |
|---|---|
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
archiverManager
To look up Archiver/UnArchiver implementations |
protected java.lang.String |
outputDirectory
The directory for the generated WAR. |
protected java.lang.String |
pluginName
Name of the plugin that Hudson uses for display purpose. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected java.io.File |
warSourceDirectory
Single directory for extra files to include in the WAR. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractHpiMojo()
|
|
| Method Summary | |
|---|---|
void |
buildExplodedWebapp(java.io.File webappDirectory)
|
void |
buildWebapp(org.apache.maven.project.MavenProject project,
java.io.File webappDirectory)
Builds the webapp for the specified project. |
void |
copyResources(java.io.File sourceDirectory,
java.io.File webappDirectory)
Copies webapp webResources from the specified directory. |
void |
copyResources(org.apache.maven.model.Resource resource,
java.io.File webappDirectory,
java.util.Properties filterProperties)
Copies webapp webResources from the specified directory. |
java.io.File |
getClassesDirectory()
|
java.io.File |
getContainerConfigXML()
|
protected java.lang.String[] |
getDependentWarExcludes()
Returns a string array of the excludes to be used when adding dependent wars as an overlay onto this war. |
protected java.lang.String[] |
getDependentWarIncludes()
Returns a string array of the includes to be used when adding dependent wars as an overlay onto this war. |
protected java.lang.String[] |
getExcludes()
Returns a string array of the excludes to be used when assembling/copying the war. |
protected java.lang.String[] |
getIncludes()
Returns a string array of the includes to be used when assembling/copying the war. |
java.io.File |
getWebappDirectory()
|
protected void |
setAttributes(org.codehaus.plexus.archiver.jar.Manifest.Section mainSection)
|
void |
setClassesDirectory(java.io.File classesDirectory)
|
void |
setContainerConfigXML(java.io.File containerConfigXML)
|
void |
setWarSourceDirectory(java.io.File warSourceDirectory)
|
void |
setWebappDirectory(java.io.File webappDirectory)
|
| 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 |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected java.lang.String outputDirectory
protected org.apache.maven.project.MavenProject project
protected java.lang.String pluginName
protected java.io.File warSourceDirectory
protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
| Constructor Detail |
|---|
public AbstractHpiMojo()
| Method Detail |
|---|
public java.io.File getClassesDirectory()
public void setClassesDirectory(java.io.File classesDirectory)
public java.io.File getWebappDirectory()
public void setWebappDirectory(java.io.File webappDirectory)
public void setWarSourceDirectory(java.io.File warSourceDirectory)
public java.io.File getContainerConfigXML()
public void setContainerConfigXML(java.io.File containerConfigXML)
protected java.lang.String[] getExcludes()
protected java.lang.String[] getIncludes()
protected java.lang.String[] getDependentWarExcludes()
protected java.lang.String[] getDependentWarIncludes()
public void buildExplodedWebapp(java.io.File webappDirectory)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void copyResources(org.apache.maven.model.Resource resource,
java.io.File webappDirectory,
java.util.Properties filterProperties)
throws java.io.IOException
resource - the resource to copywebappDirectory - the target directoryfilterProperties -
java.io.IOException - if an error occurred while copying webResources
public void copyResources(java.io.File sourceDirectory,
java.io.File webappDirectory)
throws java.io.IOException
sourceDirectory - the source directorywebappDirectory - the target directory
java.io.IOException - if an error occurred while copying webResources
public void buildWebapp(org.apache.maven.project.MavenProject project,
java.io.File webappDirectory)
throws org.apache.maven.plugin.MojoExecutionException,
java.io.IOException
project - the maven projectwebappDirectory -
java.io.IOException - if an error occurred while building the webapp
org.apache.maven.plugin.MojoExecutionException
protected void setAttributes(org.codehaus.plexus.archiver.jar.Manifest.Section mainSection)
throws org.apache.maven.plugin.MojoExecutionException,
org.codehaus.plexus.archiver.jar.ManifestException,
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
org.codehaus.plexus.archiver.jar.ManifestException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||