net.sourceforge.cruisecontrol
Class MasterBuild
java.lang.Object
|
+--org.apache.tools.ant.XmlLogger
|
+--net.sourceforge.cruisecontrol.MasterBuild
- All Implemented Interfaces:
- org.apache.tools.ant.BuildListener, java.util.EventListener
- public class MasterBuild
- extends org.apache.tools.ant.XmlLogger
- implements org.apache.tools.ant.BuildListener
Class that will run the "Master Build" -- a
loop over the build process so that builds can
be automatically run. Extends XmlLogger so
this is the only listener that needs to be declared.
- Author:
- alden almagro (alden@thoughtworks.com), Paul Julius (pdjulius@thoughtworks.com), ThoughtWorks, Inc. 2001, robertdw, jchyip
Method Summary |
void |
buildFinished(org.apache.tools.ant.BuildEvent buildevent)
Overrides method in XmlLogger. |
void |
buildStarted(org.apache.tools.ant.BuildEvent buildevent)
Overrides method in XmlLogger. |
static void |
main(java.lang.String[] args)
Entry point. |
Methods inherited from class org.apache.tools.ant.XmlLogger |
messageLogged, targetFinished, targetStarted, taskFinished, taskStarted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tools.ant.BuildListener |
messageLogged, targetFinished, targetStarted, taskFinished, taskStarted |
MasterBuild
public MasterBuild()
main
public static void main(java.lang.String[] args)
- Entry point. Verifies that all command line arguments are correctly
specified.
buildFinished
public void buildFinished(org.apache.tools.ant.BuildEvent buildevent)
- Overrides method in XmlLogger. Gets us the timestamp that we performed a "get" on
our source control repository and whether or not the build was successful. Calls the
method on XmlLogger afterward.
- Specified by:
buildFinished
in interface org.apache.tools.ant.BuildListener
- Overrides:
buildFinished
in class org.apache.tools.ant.XmlLogger
buildStarted
public void buildStarted(org.apache.tools.ant.BuildEvent buildevent)
- Overrides method in XmlLogger. writes snippet of html to disk
specifying the start time of the running build, so that the build servlet can pick this up.
- Specified by:
buildStarted
in interface org.apache.tools.ant.BuildListener
- Overrides:
buildStarted
in class org.apache.tools.ant.XmlLogger