net.sourceforge.cruisecontrol.bootstrappers
Class SnapshotCMBootstrapper
java.lang.Object
net.sourceforge.cruisecontrol.bootstrappers.SnapshotCMBootstrapper
- All Implemented Interfaces:
- Bootstrapper, java.io.Serializable
- public class SnapshotCMBootstrapper
- extends java.lang.Object
- implements Bootstrapper
Since we rely on our build.xml to handle updating our source code, there has
always been a problem with what happens when the build.xml file itself
changes. Previous workarounds have included writing a wrapper build.xml that
will check out the "real" build.xml. This class is a substitute for that
practice.
The SnapshotCMBootstrapper will handle updating a single file from
SnapshotCM before the build begins.
Usage:
<snapshotcmbootstrapper file="" />
- Author:
- [email protected]
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotCMBootstrapper
public SnapshotCMBootstrapper()
setFile
public void setFile(java.lang.String name)
bootstrap
public void bootstrap()
throws CruiseControlException
- Update the specified file.
- Specified by:
bootstrap
in interface Bootstrapper
- Throws:
CruiseControlException
validate
public void validate()
throws CruiseControlException
- Description copied from interface:
Bootstrapper
- Called after the configuration is read to make sure that all the mandatory parameters
were specified..
- Specified by:
validate
in interface Bootstrapper
- Throws:
CruiseControlException
- if there was a configuration error.
buildUpdateCommand
protected Commandline buildUpdateCommand()