Java Doc for P4.java in  » Build » cruisecontrol » net » sourceforge » cruisecontrol » sourcecontrols » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » cruisecontrol » net.sourceforge.cruisecontrol.sourcecontrols 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Method Summary
public  CommandlinebuildChangesCommand(Date lastBuildTime, Date now, boolean isWindows)
    
public  CommandlinebuildDescribeCommand(String[] changelistNumbers)
    
 CommandlinebuildInfoCommand()
    
public  CommandlinebuildUserCommand(String username)
    
protected  longcalculateServerTimeOffset()
     Calculate the difference in time between the Perforce server and the CruiseControl server.
public  ListgetModifications(Date lastBuild, Date now)
     Get a List of modifications detailing all the changes between now and the last build.
public  MapgetProperties()
    
static  StringgetQuoteChar(boolean isWindows)
    
protected  ListparseChangeDescriptions(InputStream is)
    
protected  String[]parseChangelistNumbers(InputStream is)
    
public  voidsetClient(String p4Client)
    
public  voidsetCorrectForServerTime(boolean flag)
     Indicates whether to correct for time differences between the p4 server and the CruiseControl server.
public  voidsetPasswd(String p4Passwd)
    
public  voidsetPort(String p4Port)
    
public  voidsetProperty(String propertyName)
    
public  voidsetUseP4Email(boolean flag)
     Sets if the Email address for the user should be retrieved from Perforce.
public  voidsetUser(String p4User)
    
public  voidsetView(String p4View)
    
public  voidvalidate()
    



Method Detail
buildChangesCommand
public Commandline buildChangesCommand(Date lastBuildTime, Date now, boolean isWindows) throws CruiseControlException(Code)
p4 -s [-c client] [-p port] [-u user] changes -s submitted [view@lastBuildTime@now]
throws:
  CruiseControlException -



buildDescribeCommand
public Commandline buildDescribeCommand(String[] changelistNumbers)(Code)
p4 -s [-c client] [-p port] [-u user] describe -s [change number]



buildInfoCommand
Commandline buildInfoCommand()(Code)



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)



parseChangeDescriptions
protected List parseChangeDescriptions(InputStream is) throws Exception(Code)



parseChangelistNumbers
protected String[] parseChangelistNumbers(InputStream is) throws IOException(Code)



setClient
public void setClient(String p4Client)(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.



setPasswd
public void setPasswd(String p4Passwd)(Code)



setPort
public void setPort(String p4Port)(Code)



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.



setUser
public void setUser(String p4User)(Code)



setView
public void setView(String p4View)(Code)



validate
public void validate() throws CruiseControlException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.