net.sourceforge.cruisecontrol.builders
Class AntScript

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.builders.AntScript
All Implemented Interfaces:
Script

public class AntScript
extends java.lang.Object
implements Script

Ant script class. Contains all the details related to running a Ant based build via either a batch script or inprocess.

Author:
Eric Pugh

Constructor Summary
AntScript()
           
 
Method Summary
 Commandline buildCommandline()
          construct the command that we're going to execute.
 int getExitCode()
           
 java.lang.String getLoggerClassName()
           
 void setAntScript(java.lang.String antScript)
           
 void setArgs(java.util.List args)
           
 void setBuildFile(java.lang.String buildFile)
           
 void setBuildProperties(java.util.Map buildProperties)
           
 void setExitCode(int exitCode)
          exitCode is what is returned from running the script
 void setKeepGoing(boolean keepGoing)
           
 void setLoggerClassName(java.lang.String loggerClassName)
           
 void setProperties(java.util.List properties)
           
 void setSystemClassPath(java.lang.String systemClassPath)
           
 void setTarget(java.lang.String target)
           
 void setTempFileName(java.lang.String tempFileName)
           
 void setUseDebug(boolean useDebug)
           
 void setUseLogger(boolean useLogger)
           
 void setUseQuiet(boolean useQuiet)
           
 void setUseScript(boolean useScript)
           
 void setWindows(boolean isWindows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntScript

public AntScript()
Method Detail

buildCommandline

public Commandline buildCommandline()
                             throws CruiseControlException
construct the command that we're going to execute.

Specified by:
buildCommandline in interface Script
Returns:
Commandline holding command to be executed
Throws:
CruiseControlException - on unquotable attributes

setBuildProperties

public void setBuildProperties(java.util.Map buildProperties)
Parameters:
buildProperties - The buildProperties to set.

getLoggerClassName

public java.lang.String getLoggerClassName()
Returns:
Returns the loggerClassName.

setLoggerClassName

public void setLoggerClassName(java.lang.String loggerClassName)
Parameters:
loggerClassName - The loggerClassName to set.

setAntScript

public void setAntScript(java.lang.String antScript)
Parameters:
antScript - The antScript to set.

setArgs

public void setArgs(java.util.List args)
Parameters:
args - The args to set.

setWindows

public void setWindows(boolean isWindows)
Parameters:
isWindows - The isWindows to set.

setBuildFile

public void setBuildFile(java.lang.String buildFile)
Parameters:
buildFile - The buildFile to set.

setTempFileName

public void setTempFileName(java.lang.String tempFileName)
Parameters:
tempFileName - The tempFileName to set.

setUseDebug

public void setUseDebug(boolean useDebug)
Parameters:
useDebug - The useDebug to set.

setUseLogger

public void setUseLogger(boolean useLogger)
Parameters:
useLogger - The useLogger to set.

setUseQuiet

public void setUseQuiet(boolean useQuiet)
Parameters:
useQuiet - The useQuiet to set.

setKeepGoing

public void setKeepGoing(boolean keepGoing)

setUseScript

public void setUseScript(boolean useScript)
Parameters:
useScript - The useScript to set.

setSystemClassPath

public void setSystemClassPath(java.lang.String systemClassPath)
Parameters:
systemClassPath - The systemClassPath to set.

setProperties

public void setProperties(java.util.List properties)
Parameters:
properties - The properties to set.

setTarget

public void setTarget(java.lang.String target)
Parameters:
target - The target to set.

getExitCode

public int getExitCode()
Specified by:
getExitCode in interface Script
Returns:
Returns the exitCode.

setExitCode

public void setExitCode(int exitCode)
Description copied from interface: Script
exitCode is what is returned from running the script

Specified by:
setExitCode in interface Script
Parameters:
exitCode - The exitCode to set.