org.sandev.sandbuild
Class WARDeploymentPackager

java.lang.Object
  extended byorg.sandev.sandbuild.WARDeploymentPackager
All Implemented Interfaces:
SandDeploymentPackager

public class WARDeploymentPackager
extends java.lang.Object
implements SandDeploymentPackager

Deploy the finished build files as a single WAR file.


Field Summary
protected  java.io.File deploymentDir
          The directory where the application files will be copied to on build completion.
 
Constructor Summary
WARDeploymentPackager()
           
 
Method Summary
 void doDeployment(SandProject deployment, SandProject platform, int mode)
          Deploy the files into the container.
 java.io.File getDeploymentDir()
          accessor for deploymentDir
protected  java.lang.String getEnvDir(SandProject proj)
          Return the name of the env dir for the specified project.
protected  void log(java.lang.String text)
          Dump the specified text to the build log.
 void setDeploymentDir(java.io.File dir)
          mutator for deploymentDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deploymentDir

protected java.io.File deploymentDir
The directory where the application files will be copied to on build completion.

Constructor Detail

WARDeploymentPackager

public WARDeploymentPackager()
Method Detail

setDeploymentDir

public void setDeploymentDir(java.io.File dir)
mutator for deploymentDir

Specified by:
setDeploymentDir in interface SandDeploymentPackager

getDeploymentDir

public java.io.File getDeploymentDir()
accessor for deploymentDir

Specified by:
getDeploymentDir in interface SandDeploymentPackager

doDeployment

public void doDeployment(SandProject deployment,
                         SandProject platform,
                         int mode)
                  throws SandBuildException
Deploy the files into the container.

Specified by:
doDeployment in interface SandDeploymentPackager
Throws:
SandBuildException

log

protected void log(java.lang.String text)
Dump the specified text to the build log.


getEnvDir

protected java.lang.String getEnvDir(SandProject proj)
                              throws SandBuildException
Return the name of the env dir for the specified project.

Throws:
SandBuildException