Java Doc for ConcurrentVersionsSystem.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.ConcurrentVersionsSystem

ConcurrentVersionsSystem
public class ConcurrentVersionsSystem implements SourceControl(Code)
This class implements the SourceControlElement methods for a CVS repository. 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.

There are also differing CVS client/server implementations (e.g. the official CVS and the CVSNT fork).

Note that the log formats of the official CVS have changed starting from version 1.12.9. This class currently knows of 2 different outputs referred to as the 'old' and the 'new' output formats.
author:
   Paul Julius
author:
   Robert Watkins
author:
   Frederic Lavigne
author:
   Jason Yip
author:
   Marc Paquette
author:
   Johnny Cass
author:
   McClain Looney


Inner Class :static class Version implements Serializable

Field Summary
final static  VersionDEFAULT_CVS_SERVER_VERSION
    
final public static  StringLOG_DATE_FORMAT
    
final static  StringOFFICIAL_CVS_NAME
    


Method Summary
 voidaddAliasToMap(String line)
    
public  CommandlinebuildHistoryCommand(Date lastBuildTime, Date checkTime)
    
static  StringformatCVSDate(Date date)
    
protected  CommandlinegetCommandline()
    
protected  VersiongetCvsServerVersion()
    
public  ListgetModifications(Date lastBuild, Date now)
    
protected  OSEnvironmentgetOSEnvironment()
    
public  MapgetProperties()
    
public  booleanisCvsNewOutputFormat()
    
static  ThreadlogErrorStream(InputStream error)
    
protected  ListparseStream(InputStream input)
     Parses the input stream, which should be from the cvs log command.
public  voidsetCompression(String level)
     Sets the compression level used for the call to cvs, corresponding to the "-z" command line parameter.
public  voidsetCvsRoot(String cvsroot)
     Sets the CVSROOT for all calls to CVS.
public  voidsetLocalWorkingCopy(String local)
     Sets the local working copy to use when making calls to CVS.
protected  voidsetMailAliases(Hashtable mailAliases)
    
public  voidsetModule(String module)
     Set the cvs module name.
public  voidsetProperty(String property)
    
public  voidsetPropertyOnDelete(String propertyOnDelete)
    
public  voidsetReallyQuiet(boolean reallyQuiet)
    
public  voidsetTag(String tag)
     Set the cvs tag.
 booleanuseHead()
    
public  voidvalidate()
    

Field Detail
DEFAULT_CVS_SERVER_VERSION
final static Version DEFAULT_CVS_SERVER_VERSION(Code)



LOG_DATE_FORMAT
final public static String LOG_DATE_FORMAT(Code)



OFFICIAL_CVS_NAME
final static String OFFICIAL_CVS_NAME(Code)
name of the official cvs as returned as part of the 'cvs version' command output





Method Detail
addAliasToMap
void addAliasToMap(String line)(Code)



buildHistoryCommand
public Commandline buildHistoryCommand(Date lastBuildTime, Date checkTime) throws CruiseControlException(Code)

Parameters:
  lastBuildTime -
Parameters:
  checkTime - CommandLine for "cvs -d CVSROOT -q log -N -dlastbuildtime



formatCVSDate
static String formatCVSDate(Date date)(Code)



getCommandline
protected Commandline getCommandline()(Code)



getCvsServerVersion
protected Version getCvsServerVersion()(Code)



getModifications
public List getModifications(Date lastBuild, Date now)(Code)
Returns a List of Modifications detailing all the changes between the last build and the latest revision at the repository
Parameters:
  lastBuild - last build time maybe empty, never null.



getOSEnvironment
protected OSEnvironment getOSEnvironment()(Code)
for mocking *



getProperties
public Map getProperties()(Code)



isCvsNewOutputFormat
public boolean isCvsNewOutputFormat()(Code)



logErrorStream
static Thread logErrorStream(InputStream error)(Code)



parseStream
protected List parseStream(InputStream input) throws IOException(Code)
Parses the input stream, which should be from the cvs log command. This method will format the data found in the input stream into a List of Modification instances.
Parameters:
  input - InputStream to get log data from. List of Modification elements, maybe empty never null.
throws:
  IOException -



setCompression
public void setCompression(String level)(Code)
Sets the compression level used for the call to cvs, corresponding to the "-z" command line parameter. When not set, the command line parameter is NOT included.
Parameters:
  level - Valid levels are 1 (high speed, low compression) to 9 (low speed, high compression), or 0to disable compression.



setCvsRoot
public void setCvsRoot(String cvsroot)(Code)
Sets the CVSROOT for all calls to CVS.
Parameters:
  cvsroot - CVSROOT to use.



setLocalWorkingCopy
public void setLocalWorkingCopy(String local)(Code)
Sets the local working copy to use when making calls to CVS.
Parameters:
  local - String indicating the relative or absolute path to the local working copy of the module of which tofind the log history.



setMailAliases
protected void setMailAliases(Hashtable mailAliases)(Code)



setModule
public void setModule(String module)(Code)
Set the cvs module name. Note that this is only used when localworkingcopy is not set.
Parameters:
  module - the cvs module



setProperty
public void setProperty(String property)(Code)



setPropertyOnDelete
public void setPropertyOnDelete(String propertyOnDelete)(Code)



setReallyQuiet
public void setReallyQuiet(boolean reallyQuiet)(Code)

Parameters:
  reallyQuiet - When true, this class should use the -Q cvs option instead of -q for the log command.



setTag
public void setTag(String tag)(Code)
Set the cvs tag. Note this should work with names, numbers, and anything else you can put on log -rTAG
Parameters:
  tag - the cvs tag



useHead
boolean useHead()(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.