org.codehaus.mojo.jboss
Class HardDeployMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jboss.AbstractJBossServerMojo
          extended by 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 class org.codehaus.mojo.jboss.AbstractJBossServerMojo
jbossHome, serverName
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
HardDeployMojo()
           
 
Method Summary
 void execute()
          Main plugin execution.
 void unpack(File zipFile, File targetDir)
           
 
Methods inherited from class org.codehaus.mojo.jboss.AbstractJBossServerMojo
checkConfig, getPassword, getUsername, launch, launchUnixScript, launchWindowsBatch
 
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

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
Constructor Detail

HardDeployMojo

public HardDeployMojo()
Method Detail

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.