org.codehaus.mojo.jboss
Class HardDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.jboss.AbstractJBossServerMojo
org.codehaus.mojo.jboss.HardDeployMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- HardDeployMojoDeprecated
public class HardDeployMojo
- extends AbstractJBossServerMojo
Hard deploys the file by copying it to the $JBOSS_HOME/server/[serverName]/deploy
directory.
- Since:
- 1.4
- Author:
- Jeff Genender
- Is defined by the goal name:
- hard-deploy
Field Summary |
protected String |
deploySubDir
An optional name of a subdirectory on the deploy directory to be used |
protected File |
fileName
The name of the file or directory to deploy or undeploy. |
protected File[] |
fileNames
The names of the files or directories to deploy. |
protected boolean |
unpack
A boolean indicating if the artifact should be unpacked when deployed |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
fileNames
protected File[] fileNames
- The names of the files or directories to deploy. If this is set, the fileName parameter will be ignored.
- Since:
- 1.4.1
- Is defined by:
fileName
protected File fileName
- The name of the file or directory to deploy or undeploy.
- Is defined by:
- default-value:
- ${project.build.directory}/${project.build.finalName}.${project.packaging}
deploySubDir
protected String deploySubDir
- An optional name of a subdirectory on the deploy directory to be used
- Is defined by:
unpack
protected boolean unpack
- A boolean indicating if the artifact should be unpacked when deployed
- Is defined by:
- default-value:
- false
HardDeployMojo
public HardDeployMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Main plugin execution.
- Throws:
org.apache.maven.plugin.MojoExecutionException
unpack
public void unpack(File zipFile,
File targetDir)
throws IOException
- Throws:
IOException
Copyright © 2005-2012 Codehaus. All Rights Reserved.