|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.sourcecontrols.AlienBrainCore
net.sourceforge.cruisecontrol.sourcecontrols.AlienBrain
This class implements the SourceControl methods for an AlienBrain repository. It does this by taking advantage of the AlienBrain command- line utility. Obviously, the command line utility must be installed and working in order for this class to work. This class is based very heavily on P4.java.
Field Summary |
Fields inherited from class net.sourceforge.cruisecontrol.sourcecontrols.AlienBrainCore |
AB_NO_SESSION |
Constructor Summary | |
AlienBrain()
|
Method Summary | |
protected ManagedCommandline |
buildGetModificationsCommand(java.util.Date lastBuild,
java.util.Date now)
Construct a ManagedCommandline which will run the AlienBrain command-line client in such a way that it will return a list of modifications. |
static long |
dateToFiletime(java.util.Date date)
Convert a Java Date into an AlienBrain SCIT timestamp. |
static java.util.Date |
filetimeToDate(long filetime)
Convert an AlienBrain SCIT timestamp into a Java Date. |
java.util.List |
getModifications(java.util.Date lastBuild,
java.util.Date now)
Get a List of Modifications detailing all the changes between now and the last build |
protected java.util.List |
getModificationsFromAlienBrain(java.util.Date lastBuild,
java.util.Date now)
Run the AlienBrain command-line client and return a list of Modifications since lastBuild, if any. |
java.util.Map |
getProperties()
Any properties that have been set in this sourcecontrol. |
protected static Modification |
parseModificationDescription(java.lang.String description)
Turns a string, most likely provided from the AlienBrain command-line client, into a Modification. |
protected java.util.List |
parseModifications(java.util.List modifications)
Turn a stream containing the results of running the AlienBrain command-line client into a list of Modifications. |
void |
setProperty(java.lang.String propertyName)
|
void |
validate()
|
Methods inherited from class net.sourceforge.cruisecontrol.sourcecontrols.AlienBrainCore |
addArgumentIfSet, addFlagIfSet, buildCommonCommand, getBranch, getDatabase, getPassword, getPath, getServer, getUser, setActiveBranch, setBranch, setDatabase, setPassword, setPath, setServer, setUser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AlienBrain()
Method Detail |
public java.util.Map getProperties()
getProperties
in interface SourceControl
public void setProperty(java.lang.String propertyName)
public void validate() throws CruiseControlException
validate
in interface SourceControl
CruiseControlException
public java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
getModifications
in interface SourceControl
lastBuild
- now
-
public static long dateToFiletime(java.util.Date date)
public static java.util.Date filetimeToDate(long filetime)
protected ManagedCommandline buildGetModificationsCommand(java.util.Date lastBuild, java.util.Date now)
lastBuild
- now
- protected java.util.List getModificationsFromAlienBrain(java.util.Date lastBuild, java.util.Date now) throws java.io.IOException, CruiseControlException
lastBuild
- now
-
java.io.IOException
CruiseControlException
protected java.util.List parseModifications(java.util.List modifications)
protected static Modification parseModificationDescription(java.lang.String description)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |