|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.util.PerDayScheduleItem
net.sourceforge.cruisecontrol.Builder
net.sourceforge.cruisecontrol.builders.AntBuilder
we often see builds that fail because the previous build is still holding on to some resource. we can avoid this by just building in a different process which will completely die after every build.
Nested Class Summary | |
class |
AntBuilder.JVMArg
|
Field Summary | |
protected static java.lang.String |
DEFAULT_LOGGER
|
Fields inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem |
INVALID_NAME_OF_DAY, NOT_SET |
Constructor Summary | |
AntBuilder()
|
Method Summary | |
org.jdom.Element |
build(java.util.Map buildProperties)
build and return the results via xml. |
org.jdom.Element |
buildWithTarget(java.util.Map properties,
java.lang.String buildTarget)
|
java.lang.Object |
createJVMArg()
|
Property |
createProperty()
|
protected java.lang.String |
findAntScript(boolean isWindows)
If the anthome attribute is set, then this method returns the correct shell script to use for a specific environment. |
protected static org.jdom.Element |
getAntLogAsElement(java.io.File file)
|
java.lang.String |
getLoggerClassName()
|
protected java.lang.String |
getSystemClassPath()
|
void |
setAntHome(java.lang.String antHome)
If set CC will use the platform specific script provided by Ant |
void |
setAntScript(java.lang.String antScript)
Sets the Script file to be invoked (in place of calling the Ant class directly). |
void |
setAntWorkingDir(java.lang.String dir)
Set the working directory where Ant will be invoked. |
void |
setBuildFile(java.lang.String buildFile)
Sets the name of the build file that Ant will use. |
void |
setKeepGoing(boolean keepGoing)
|
void |
setLoggerClassName(java.lang.String string)
|
void |
setSaveLogDir(java.lang.String dir)
Set the location to which the ant log will be saved before Cruise Control merges the file into its log. |
void |
setTarget(java.lang.String target)
Set the Ant target(s) to invoke. |
void |
setTempFile(java.lang.String tempFileName)
Set the name of the temporary file used to capture output. |
void |
setTimeout(long timeout)
|
void |
setUseDebug(boolean debug)
|
void |
setUseLogger(boolean useLogger)
Sets whether Ant will use the custom loggers. |
void |
setUseQuiet(boolean quiet)
|
void |
validate()
|
Methods inherited from class net.sourceforge.cruisecontrol.Builder |
compareTo, getGroup, getMultiple, getTime, isValidDay, setGroup, setMultiple, setTime |
Methods inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem |
getDay, setDay |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String DEFAULT_LOGGER
Constructor Detail |
public AntBuilder()
Method Detail |
public void validate() throws CruiseControlException
validate
in class Builder
CruiseControlException
public org.jdom.Element build(java.util.Map buildProperties) throws CruiseControlException
build
in class Builder
CruiseControlException
public org.jdom.Element buildWithTarget(java.util.Map properties, java.lang.String buildTarget) throws CruiseControlException
buildWithTarget
in class Builder
CruiseControlException
public void setSaveLogDir(java.lang.String dir)
dir
- the absolute path to the directory where the ant log will be
saved or relative path to where you started CruiseControlpublic void setAntWorkingDir(java.lang.String dir)
dir
- the directory to make the current working directory.public void setAntScript(java.lang.String antScript)
antScript
- the name of the script filepublic void setAntHome(java.lang.String antHome)
antHome
- the path to ANT_HOMEprotected java.lang.String findAntScript(boolean isWindows) throws CruiseControlException
CruiseControlException
public void setTempFile(java.lang.String tempFileName)
tempFileName
- public void setTarget(java.lang.String target)
target
- the target(s) name.public void setBuildFile(java.lang.String buildFile)
buildFile
- the name of the build file.public void setUseLogger(boolean useLogger)
useLogger
- public java.lang.Object createJVMArg()
public Property createProperty()
protected java.lang.String getSystemClassPath()
protected static org.jdom.Element getAntLogAsElement(java.io.File file) throws CruiseControlException
CruiseControlException
public void setUseDebug(boolean debug)
public void setUseQuiet(boolean quiet)
public void setKeepGoing(boolean keepGoing)
public java.lang.String getLoggerClassName()
public void setLoggerClassName(java.lang.String string)
public void setTimeout(long timeout)
timeout
- The timeout to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |