| |
|
| java.lang.Object net.sourceforge.cruisecontrol.sourcecontrols.P4
P4 | public class P4 implements SourceControl(Code) | | This class implements the SourceControlElement methods for a P4 depot. The call to CVS is assumed to work without any
setup. This implies that if the authentication type is pserver the call to cvs login should be done prior to calling
this class. P4Element depends on the optional P4 package delivered with Ant v1.3. But since it probably doesn't
make much sense using the P4Element without other P4 support it shouldn't be a problem. P4Element sets the
property ${p4element.change} with the latest changelist number or the changelist with the latest date. This should
then be passed into p4sync or other p4 commands.
author: Niclas Olofsson - isMobile.com author: Jason Yip author: Tim McCune author: J D Glanville author: Patrick Conant Copyright (c) 2005 Hewlett-Packard Development Company, L.P. author: John Lussmyer |
Inner Class :protected static class ServerInfoConsumer implements StreamConsumer | |
buildDescribeCommand | public Commandline buildDescribeCommand(String[] changelistNumbers)(Code) | | p4 -s [-c client] [-p port] [-u user] describe -s [change number]
|
buildUserCommand | public Commandline buildUserCommand(String username)(Code) | | p4 -s [-c client] [-p port] [-u user] user -o [username]
|
calculateServerTimeOffset | protected long calculateServerTimeOffset() throws CruiseControlException(Code) | | Calculate the difference in time between the Perforce server and the CruiseControl server. A negative time
difference indicates that the Perforce server time is later than CruiseControl server (e.g. Perforce in New York,
CruiseControl in San Francisco). A positive offset indicates that the Perforce server time is before the
CruiseControl server.
throws: CruiseControlException - |
getModifications | public List getModifications(Date lastBuild, Date now)(Code) | | Get a List of modifications detailing all the changes between now and the last build. Return this as an element.
It is not necessary for sourcecontrols to actually do anything other than returning a chunk of XML data back.
Parameters: lastBuild - time of last build Parameters: now - time this build started a list of XML elements that contains data about the modifications that took place. If no changes, thismethod returns an empty list. |
getProperties | public Map getProperties()(Code) | | |
getQuoteChar | static String getQuoteChar(boolean isWindows)(Code) | | |
setCorrectForServerTime | public void setCorrectForServerTime(boolean flag)(Code) | | Indicates whether to correct for time differences between the p4 server and the CruiseControl server. Setting the
flag to "true" will correct for both time zone differences and for non-synchronized system clocks.
|
setProperty | public void setProperty(String propertyName)(Code) | | |
setUseP4Email | public void setUseP4Email(boolean flag)(Code) | | Sets if the Email address for the user should be retrieved from Perforce.
Parameters: flag - true to retrieve email addresses from perforce. |
|
|
|