net.sourceforge.cruisecontrol.bootstrappers
Class SnapshotCMBootstrapper

java.lang.Object
  extended bynet.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

Constructor Summary
SnapshotCMBootstrapper()
           
 
Method Summary
 void bootstrap()
          Update the specified file.
protected  Commandline buildUpdateCommand()
           
 void setFile(java.lang.String name)
           
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotCMBootstrapper

public SnapshotCMBootstrapper()
Method Detail

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()