|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.Project
Represents a single logical project consisting of source code that needs to be built. Project is associated with bootstrappers that run before builds and a Schedule that determines when builds occur.
Constructor Summary | |
Project()
|
Method Summary | |
void |
addBuildProgressListener(BuildProgressListener listener)
|
void |
addBuildResultListener(BuildResultListener listener)
|
protected void |
bootstrap()
Iterate over all of the registered Bootstrapper s and call
their respective bootstrap methods. |
protected void |
build()
Unless paused, runs any bootstrappers and then the entire build. |
protected void |
createNewSchedulingThread()
|
boolean |
equals(java.lang.Object arg0)
|
void |
execute()
|
protected void |
fireProgressEvent(BuildProgressEvent event)
|
protected void |
fireResultEvent(BuildResultEvent event)
|
void |
forceBuildWithTarget(java.lang.String buildTarget)
|
boolean |
getBuildForced()
|
long |
getBuildInterval()
Returns the build interval. |
java.lang.String |
getBuildStartTime()
|
java.lang.String |
getLabel()
|
LabelIncrementer |
getLabelIncrementer()
|
java.lang.String |
getLastBuild()
|
java.util.Date |
getLastBuildDate()
|
java.lang.String |
getLastSuccessfulBuild()
|
Log |
getLog()
|
java.lang.String |
getLogDir()
|
java.lang.String |
getName()
|
ProjectConfig |
getProjectConfig()
|
protected org.jdom.Element |
getProjectPropertiesElement(java.util.Date now)
|
protected java.util.Map |
getProjectPropertiesMap(java.util.Date now)
|
ProjectState |
getState()
|
java.lang.String |
getStatus()
|
java.lang.String |
getStatusWithQueuePosition()
|
int |
hashCode()
|
protected void |
init()
Initialize the project. |
boolean |
isLastBuildSuccessful()
|
boolean |
isPaused()
|
void |
overrideBuildInterval(long sleepMillis)
Sets the build interval that this Project should use. |
protected void |
publish(Log buildLog)
Iterate over all of the registered Publisher s and call
their respective publish methods. |
void |
register(javax.management.MBeanServer server)
|
void |
run()
|
void |
serializeProject()
Serialize the project to allow resumption after a process bounce |
void |
setBuildAfterFailed(boolean rebuildEvenWithNoNewModifications)
|
void |
setBuildForced(boolean forceNewBuildNow)
|
void |
setBuildQueue(BuildQueue buildQueue)
|
void |
setLabel(java.lang.String newLabel)
|
void |
setLabelIncrementer(LabelIncrementer incrementer)
|
void |
setLastBuild(java.lang.String newLastBuild)
|
void |
setLastSuccessfulBuild(java.lang.String newLastSuccessfulBuild)
|
void |
setName(java.lang.String projectName)
|
void |
setPaused(boolean paused)
|
void |
setProjectConfig(ProjectConfig projectConfig)
|
void |
start()
|
void |
stop()
|
java.lang.String |
toString()
|
protected void |
validateLabel(java.lang.String oldLabel,
LabelIncrementer incrementer)
Ensure that label is valid for the specified LabelIncrementer |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Project()
Method Detail |
public void execute()
protected void build() throws CruiseControlException
CruiseControlException
- if an error occurs during the buildpublic void run()
run
in interface java.lang.Runnable
public void forceBuildWithTarget(java.lang.String buildTarget)
public void serializeProject()
public void setLabelIncrementer(LabelIncrementer incrementer) throws CruiseControlException
CruiseControlException
public LabelIncrementer getLabelIncrementer()
public void setName(java.lang.String projectName)
public java.lang.String getName()
public void setLabel(java.lang.String newLabel)
public java.lang.String getLabel()
public void setLastBuild(java.lang.String newLastBuild) throws CruiseControlException
newLastBuild
- string containing the build date in the format
yyyyMMddHHmmss
CruiseControlException
- if the date cannot be extracted from the
input stringpublic void setLastSuccessfulBuild(java.lang.String newLastSuccessfulBuild) throws CruiseControlException
newLastSuccessfulBuild
- string containing the build date in the format
yyyyMMddHHmmss
CruiseControlException
- if the date cannot be extracted from the
input stringpublic java.lang.String getLastBuild()
public boolean getBuildForced()
public void setBuildForced(boolean forceNewBuildNow)
public java.lang.String getLastSuccessfulBuild()
public java.lang.String getLogDir()
public long getBuildInterval()
public void overrideBuildInterval(long sleepMillis)
sleepMillis
- the number of milliseconds to sleep between build attemptspublic boolean isPaused()
public void setPaused(boolean paused)
public void setBuildAfterFailed(boolean rebuildEvenWithNoNewModifications)
public java.lang.String getStatus()
public java.lang.String getStatusWithQueuePosition()
public ProjectState getState()
public void setBuildQueue(BuildQueue buildQueue)
public java.lang.String getBuildStartTime()
public Log getLog()
protected void init()
protected org.jdom.Element getProjectPropertiesElement(java.util.Date now)
protected java.util.Map getProjectPropertiesMap(java.util.Date now)
protected void publish(Log buildLog) throws CruiseControlException
Publisher
s and call
their respective publish
methods.
buildLog
-
CruiseControlException
- if an error occurs during publishingprotected void bootstrap() throws CruiseControlException
Bootstrapper
s and call
their respective bootstrap
methods.
CruiseControlException
- if an error occurs during bootstrappingprotected void validateLabel(java.lang.String oldLabel, LabelIncrementer incrementer) throws CruiseControlException
oldLabel
- target labelincrementer
- target LabelIncrementer
CruiseControlException
- if label is not validpublic boolean isLastBuildSuccessful()
public void start()
protected void createNewSchedulingThread()
public void stop()
public java.lang.String toString()
public void addBuildProgressListener(BuildProgressListener listener)
protected void fireProgressEvent(BuildProgressEvent event)
public void addBuildResultListener(BuildResultListener listener)
protected void fireResultEvent(BuildResultEvent event)
public void setProjectConfig(ProjectConfig projectConfig) throws CruiseControlException
CruiseControlException
public boolean equals(java.lang.Object arg0)
public int hashCode()
public void register(javax.management.MBeanServer server) throws javax.management.JMException
javax.management.JMException
public ProjectConfig getProjectConfig()
public java.util.Date getLastBuildDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |