net.sourceforge.cruisecontrol.sourcecontrols
Class Darcs
java.lang.Object
net.sourceforge.cruisecontrol.sourcecontrols.Darcs
- All Implemented Interfaces:
- java.io.Serializable, SourceControl
- public class Darcs
- extends java.lang.Object
- implements SourceControl
Source Control implementation for Darcs. Provides a means of executing the darcs changes command and parsing the xml
output to determine if there have been any changes. The modifications are parsed and used for cruisecontrol build
reports which allow the patch names associated with a build to be displayed. Currently the darcs xml-output does not
display which files have changed.
Large parts of this implementation were based on the SVN
source
control implementation.
- See Also:
- Serialized Form
Constructor Summary |
Darcs()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Darcs
public Darcs()
setProperty
public void setProperty(java.lang.String property)
setPropertyOnDelete
public void setPropertyOnDelete(java.lang.String propertyOnDelete)
setRepositoryLocation
public void setRepositoryLocation(java.lang.String repositoryLocation)
setWorkingDir
public void setWorkingDir(java.lang.String workingDir)
getProperties
public java.util.Map getProperties()
- Description copied from interface:
SourceControl
- Any properties that have been set in this sourcecontrol.
Will be passed onto the Builder, which may then pass the properties to the underlying
build implementation. For example, the Ant builder will define these properties so that
the underlying Ant script can use them.
- Specified by:
getProperties
in interface SourceControl
validate
public void validate()
throws CruiseControlException
- Specified by:
validate
in interface SourceControl
- Throws:
CruiseControlException
getModifications
public java.util.List getModifications(java.util.Date lastBuild,
java.util.Date now)
- Description copied from interface:
SourceControl
- Get a List of Modifications detailing all the changes between now and
the last build
- Specified by:
getModifications
in interface SourceControl
- Parameters:
lastBuild
- now
-
- Returns:
- List of Modification objects