| java.lang.Object net.sourceforge.cruisecontrol.sourcecontrols.AlienBrainCore net.sourceforge.cruisecontrol.sourcecontrols.AlienBrain
AlienBrain | public class AlienBrain extends AlienBrainCore implements SourceControl(Code) | | 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.
author: Scott Jacobs |
buildGetModificationsCommand | protected ManagedCommandline buildGetModificationsCommand(Date lastBuild, Date now)(Code) | | Construct a ManagedCommandline which will run the AlienBrain command-line
client in such a way that it will return a list of modifications.
Parameters: lastBuild - Parameters: now - |
dateToFiletime | public static long dateToFiletime(Date date)(Code) | | Convert a Java Date into an AlienBrain SCIT timestamp.
AlienBrain provides a 64-bit modification timestamp that is in windows
FILETIME format, which is a 65-bit value representing the number of
100-nanosecond intervals since January 1, 1601 (UTC).
|
filetimeToDate | public static Date filetimeToDate(long filetime)(Code) | | Convert an AlienBrain SCIT timestamp into a Java Date.
AlienBrain provides a 64-bit modification timestamp that is in windows
FILETIME format, which is a 64-bit value representing the number of
100-nanosecond intervals since January 1, 1601 (UTC).
|
getModifications | public List getModifications(Date lastBuild, Date now)(Code) | | Get a List of Modifications detailing all the changes between now and
the last build
Parameters: lastBuild - Parameters: now - List of Modification objects |
getModificationsFromAlienBrain | protected List getModificationsFromAlienBrain(Date lastBuild, Date now) throws IOException, CruiseControlException(Code) | | Run the AlienBrain command-line client and return a list of
Modifications since lastBuild, if any.
Parameters: lastBuild - Parameters: now - |
getProperties | public Map getProperties()(Code) | | Any properties that have been set in this sourcecontrol.
|
parseModificationDescription | protected static Modification parseModificationDescription(String description)(Code) | | Turns a string, most likely provided from the AlienBrain command-line
client, into a Modification.
|
parseModifications | protected List parseModifications(List modifications)(Code) | | Turn a stream containing the results of running the AlienBrain
command-line client into a list of Modifications.
|
setProperty | public void setProperty(String propertyName)(Code) | | |
Fields inherited from net.sourceforge.cruisecontrol.sourcecontrols.AlienBrainCore | final protected static String AB_NO_SESSION(Code)(Java Doc)
|
|
|