public abstract class AbstractHpiMojo extends AbstractJenkinsMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
archiverManager
To look up Archiver/UnArchiver implementations
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository |
protected String |
maskClasses
[ws|tab|CR|LF]+ separated list of package prefixes that your plugin doesn't want to see
from the core.
|
protected String |
outputDirectory
The directory for the generated WAR.
|
protected String |
pluginName
Name of the plugin that Jenkins uses for display purpose.
|
protected org.apache.maven.project.MavenProjectBuilder |
projectBuilder |
protected File |
warSourceDirectory
Single directory for extra files to include in the WAR.
|
jenkinsCoreId, project| Constructor and Description |
|---|
AbstractHpiMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildExplodedWebapp(File webappDirectory) |
void |
buildWebapp(org.apache.maven.project.MavenProject project,
File webappDirectory)
Builds the webapp for the specified project.
|
void |
copyResources(File sourceDirectory,
File webappDirectory)
Copies webapp webResources from the specified directory.
|
void |
copyResources(org.apache.maven.model.Resource resource,
File webappDirectory,
Properties filterProperties)
Copies webapp webResources from the specified directory.
|
File |
getClassesDirectory() |
File |
getContainerConfigXML() |
protected String[] |
getDependentWarExcludes()
Returns a string array of the excludes to be used
when adding dependent wars as an overlay onto this war.
|
protected String[] |
getDependentWarIncludes()
Returns a string array of the includes to be used
when adding dependent wars as an overlay onto this war.
|
protected String[] |
getExcludes()
Returns a string array of the excludes to be used
when assembling/copying the war.
|
protected String[] |
getIncludes()
Returns a string array of the includes to be used
when assembling/copying the war.
|
Set<MavenArtifact> |
getProjectArtfacts() |
File |
getWebappDirectory() |
protected Boolean |
isSupportDynamicLoading()
Is the dynamic loading supported?
False, if the answer is known to be "No".
|
protected void |
setAttributes(org.codehaus.plexus.archiver.jar.Manifest.Section mainSection) |
void |
setClassesDirectory(File classesDirectory) |
void |
setContainerConfigXML(File containerConfigXML) |
void |
setWarSourceDirectory(File warSourceDirectory) |
void |
setWebappDirectory(File webappDirectory) |
protected MavenArtifact |
wrap(org.apache.maven.artifact.Artifact a) |
findJenkinsVersiongetLog, getPluginContext, setLog, setPluginContextprotected String outputDirectory
protected String pluginName
protected File warSourceDirectory
protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
protected String maskClasses
Tokens in this list is prefix-matched against the fully-qualified class name, so add "." to the end of each package name, like "com.foo. com.bar."
protected org.apache.maven.project.MavenProjectBuilder projectBuilder
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
public File getClassesDirectory()
public void setClassesDirectory(File classesDirectory)
public File getWebappDirectory()
public void setWebappDirectory(File webappDirectory)
public void setWarSourceDirectory(File warSourceDirectory)
public File getContainerConfigXML()
public void setContainerConfigXML(File containerConfigXML)
protected String[] getExcludes()
protected String[] getIncludes()
protected String[] getDependentWarExcludes()
protected String[] getDependentWarIncludes()
public void buildExplodedWebapp(File webappDirectory) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void copyResources(org.apache.maven.model.Resource resource,
File webappDirectory,
Properties filterProperties)
throws IOException
resource - the resource to copywebappDirectory - the target directoryfilterProperties - IOException - if an error occurred while copying webResourcespublic void copyResources(File sourceDirectory, File webappDirectory) throws IOException
sourceDirectory - the source directorywebappDirectory - the target directoryIOException - if an error occurred while copying webResourcespublic Set<MavenArtifact> getProjectArtfacts()
protected MavenArtifact wrap(org.apache.maven.artifact.Artifact a)
public void buildWebapp(org.apache.maven.project.MavenProject project,
File webappDirectory)
throws org.apache.maven.plugin.MojoExecutionException,
IOException
project - the maven projectwebappDirectory - IOException - if an error occurred while building the webapporg.apache.maven.plugin.MojoExecutionExceptionprotected void setAttributes(org.codehaus.plexus.archiver.jar.Manifest.Section mainSection)
throws org.apache.maven.plugin.MojoExecutionException,
org.codehaus.plexus.archiver.jar.ManifestException,
IOException
org.apache.maven.plugin.MojoExecutionExceptionorg.codehaus.plexus.archiver.jar.ManifestExceptionIOExceptionprotected Boolean isSupportDynamicLoading() throws IOException
IOExceptionCopyright © 2004-2012. All Rights Reserved.