net.sourceforge.cruisecontrol.builders
Class NantScript
java.lang.Object
net.sourceforge.cruisecontrol.builders.NantScript
- All Implemented Interfaces:
- Script
- public class NantScript
- extends java.lang.Object
- implements Script
NAnt script class.
Contains all the details related to running a NAnt based build.
- Author:
- Eric Pugh
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NantScript
public NantScript()
buildCommandline
public Commandline buildCommandline()
- construct the command that we're going to execute.
- Specified by:
buildCommandline
in interface Script
- Returns:
- Commandline holding command to be executed
getCommandLine
protected Commandline getCommandLine()
setBuildProperties
public void setBuildProperties(java.util.Map buildProperties)
- Parameters:
buildProperties
- The buildProperties to set.
setNantProperties
public void setNantProperties(java.util.List properties)
getLoggerClassName
public java.lang.String getLoggerClassName()
- Returns:
- Returns the loggerClassName.
setLoggerClassName
public void setLoggerClassName(java.lang.String loggerClassName)
- Parameters:
loggerClassName
- The loggerClassName 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.
setTarget
public void setTarget(java.lang.String target)
- Parameters:
target
- The target to set.
setTargetFramework
public void setTargetFramework(java.lang.String targetFramework)
- Parameters:
targetFramework
- The targetFramework 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.