|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.cactus.maven2.mojos.CactifyWarMojo
public class CactifyWarMojo
A maven2 mojo that injects elements necessary to run Cactus tests into an existing WAR file.
| Field Summary | |
|---|---|
protected java.lang.String |
artifactId
ArtifactId of the artifact to be installed. |
protected java.lang.String |
classifier
Classifier type of the artifact to be installed. |
protected java.lang.String |
groupId
GroupId of the artifact to be installed. |
protected org.apache.maven.artifact.installer.ArtifactInstaller |
installer
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected java.lang.String |
packaging
Packaging type of the artifact to be installed. |
protected java.lang.String |
projectVersion
Version of the artifact to be installed. |
protected java.lang.String |
version
Version of the web.xml to create. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
CactifyWarMojo()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredEjbref(org.codehaus.cargo.module.webapp.EjbRef theEjbRef)
Adds a configured EjbRef instance. |
protected org.codehaus.cargo.util.log.Logger |
createLogger()
Create a logger. |
java.io.File |
createTempFile(java.lang.String thePrefix,
java.lang.String theSuffix,
java.io.File theParentDir,
boolean isDeleteOnExit)
A method to create the temporary files. |
void |
execute()
The "main" method of the mojo. |
org.apache.maven.archiver.MavenArchiveConfiguration |
getArchive()
Getter method for the MavenArchiveConfiguration. |
java.lang.String |
getContext()
Returns the context. |
java.lang.String |
getFileName()
Gets the file name. |
org.apache.maven.project.MavenProject |
getProject()
Getter method for the MavenProject. |
java.io.File |
getSrcFile()
Returns the source file for cactification. |
void |
setContext(java.lang.String theContext)
Sets the context. |
void |
setDestFile(java.io.File theDestFile)
Setter method for the destFile. |
void |
setProject(org.apache.maven.project.MavenProject theProject)
Setter method for the MavenProject. |
void |
setSrcFile(java.io.File theSrcFile)
Sets the source file for cactification. |
void |
setVersion(Version theVersion)
Sets the web-app version to use when creating a WAR file from scratch. |
void |
setWarArchiver(org.codehaus.plexus.archiver.war.WarArchiver theWarArchiver)
Setter for the warArchiver so that the cactifyearmojo can set it. |
| 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 |
| Field Detail |
|---|
protected org.apache.maven.artifact.installer.ArtifactInstaller installer
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected java.lang.String groupId
protected java.lang.String artifactId
protected java.lang.String projectVersion
protected java.lang.String version
protected java.lang.String packaging
protected java.lang.String classifier
| Constructor Detail |
|---|
public CactifyWarMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - in case an error occurs.
org.apache.maven.plugin.MojoFailureException - in case a failure occurs.
public java.io.File createTempFile(java.lang.String thePrefix,
java.lang.String theSuffix,
java.io.File theParentDir,
boolean isDeleteOnExit)
thePrefix - the prefix of the filename.theSuffix - the suffix of the filenametheParentDir - the parent directoryisDeleteOnExit - should we delete the directories on exit?
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject theProject)
project - public org.apache.maven.archiver.MavenArchiveConfiguration getArchive()
protected org.codehaus.cargo.util.log.Logger createLogger()
<log> configuration element
has been specified by the user then use it. If none is specified then
log to the Maven 2 logging subsystem.
public java.lang.String getContext()
java.lang.Stringpublic java.io.File getSrcFile()
java.io.Filepublic void setContext(java.lang.String theContext)
context - public final void setVersion(Version theVersion)
theVersion - The versionpublic final void setSrcFile(java.io.File theSrcFile)
theSrcFile - The source filepublic java.lang.String getFileName()
public void setDestFile(java.io.File theDestFile)
destFile - public final void addConfiguredEjbref(org.codehaus.cargo.module.webapp.EjbRef theEjbRef)
theEjbRef - the EjbRef to addpublic void setWarArchiver(org.codehaus.plexus.archiver.war.WarArchiver theWarArchiver)
warArchiver -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||