Java Doc for CvsRunner.java in  » Web-Server » Jigsaw » org » w3c » cvs » 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 » Web Server » Jigsaw » org.w3c.cvs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.cvs.CvsRunner

CvsRunner
class CvsRunner implements CVS(Code)


Field Summary
public static  booleandebug
    


Method Summary
 voidcvsAdd(CvsDirectory cvs, String names)
    
 voidcvsAdd(CvsDirectory cvs, String names, String env)
    
 voidcvsAdmin(CvsDirectory cvs, String command)
    
 voidcvsCommit(CvsDirectory cvs, String names, String comment, CommitHandler handler)
     Run the commit command on the given set of files.
 voidcvsCommit(CvsDirectory cvs, String names, String comment, CommitHandler handler, String env)
     Run the commit command on the given set of files.
 voidcvsCommit(CvsDirectory cvs, String msg, CommitHandler handler)
     Ru the commit comamnd in the given directory.
 voidcvsCommit(CvsDirectory cvs, String msg, CommitHandler handler, String env)
     Ru the commit comamnd in the given directory.
 StringcvsDiff(CvsDirectory cvs, String name)
     Run the diff command on the given file
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  name - The name of the file to diff.
exception:
  CvsException - If the CVS command failed.
 voidcvsGet(CvsDirectory cvs, String path)
    
 voidcvsLoad(CvsDirectory cvs, String filename, UpdateHandler handler)
     Check this file status.
 voidcvsLoad(CvsDirectory cvs, String filename, UpdateHandler handler, StatusHandler statush)
     Check this file status.
 voidcvsLoad(CvsDirectory cvs, UpdateHandler handler, StatusHandler statush)
     Check all this directory files status.
 StringcvsLog(CvsDirectory cvs, String name)
     Run the log command on the given file
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  name - The name of the file to log.
exception:
  CvsException - If the CVS command failed.
 voidcvsRemove(CvsDirectory cvs, String names)
     Run the remove command.
 voidcvsRevert(CvsDirectory cvs, String name, String revision, OutputStream out, String env)
     Run the 'update -p -r ' command.
 voidcvsRevert(CvsDirectory cvs, String name, String revision, File file, String env)
     Run the 'update -p -r ' command.
 voidcvsStatus(CvsDirectory cvs, String filename, StatusHandler statush)
     Check this directory file status.
 voidcvsUpdate(CvsDirectory cvs, String names, UpdateHandler handler)
     Run the update command.
 voidcvsUpdate(CvsDirectory cvs, UpdateHandler handler)
     Run the update command on the whole directory.
 voidcvsUpdateDirectory(CvsDirectory cvs, File subdir, UpdateHandler handler)
     Update a directory.
protected  voiderror(String mth, String msg)
     Emit an error.
protected  String[]getCommand(CvsDirectory cvs, String cvsopts, String cmdopts)
     Get the CVS command String array.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  cvsopts - The CVS wide options.
Parameters:
  cmdopts - The command, and its optional options.
protected  StringgetQuotedFilename(String line)
     Get a filename between quote contained in this String.
 FilegetTemporaryFile(String string)
     Dump the given string into a temporary file.
protected  StringBufferreadError(InputStream procin, StringBuffer into)
     Parse the error message and throw an exception if necessary.
protected  ProcessrunCvsProcess(String args)
     Run a cvs command, return the process object.
protected  ProcessrunCvsProcess(String args, String env)
     Run a cvs command, return the process object.
protected synchronized  voidwaitForCompletion(Process proc, boolean ccode)
     Wait for the underlying CVS process to finish.

Field Detail
debug
public static boolean debug(Code)





Method Detail
cvsAdd
void cvsAdd(CvsDirectory cvs, String names) throws CvsException(Code)
Run the add command
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  names - The name of the files to add locally.
exception:
  CvsException - If the CVS command failed.



cvsAdd
void cvsAdd(CvsDirectory cvs, String names, String env) throws CvsException(Code)
Run the add command
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  names - The name of the files to add locally.
Parameters:
  env - The extra env to use during the process.
exception:
  CvsException - If the CVS command failed.



cvsAdmin
void cvsAdmin(CvsDirectory cvs, String command) throws CvsException(Code)
Run the admin command
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  command - The rcs command
exception:
  CvsException - If the CVS command failed.



cvsCommit
void cvsCommit(CvsDirectory cvs, String names, String comment, CommitHandler handler) throws CvsException(Code)
Run the commit command on the given set of files.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  names - The name of files to commit.
Parameters:
  comment - Description of the file changes.
Parameters:
  handler - The CVS output callback.
exception:
  CvsException - If the CVS process failed.



cvsCommit
void cvsCommit(CvsDirectory cvs, String names, String comment, CommitHandler handler, String env) throws CvsException(Code)
Run the commit command on the given set of files.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  names - The name of files to commit.
Parameters:
  comment - Description of the file changes.
Parameters:
  handler - The CVS output callback.
Parameters:
  env - The extra env to use during commit.
exception:
  CvsException - If the CVS process failed.



cvsCommit
void cvsCommit(CvsDirectory cvs, String msg, CommitHandler handler) throws CvsException(Code)
Ru the commit comamnd in the given directory.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  msg - Description of directory changes since last commit.
Parameters:
  handler - The CVS output callback.
exception:
  CvsException - If the CVS process failed.



cvsCommit
void cvsCommit(CvsDirectory cvs, String msg, CommitHandler handler, String env) throws CvsException(Code)
Ru the commit comamnd in the given directory.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  msg - Description of directory changes since last commit.
Parameters:
  handler - The CVS output callback.
Parameters:
  env - The extra env to use during commit.
exception:
  CvsException - If the CVS process failed.



cvsDiff
String cvsDiff(CvsDirectory cvs, String name) throws CvsException(Code)
Run the diff command on the given file
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  name - The name of the file to diff.
exception:
  CvsException - If the CVS command failed. A String containing the diff, or null if thefile is in sync with the repository.



cvsGet
void cvsGet(CvsDirectory cvs, String path) throws CvsException(Code)
perform a cvs get



cvsLoad
void cvsLoad(CvsDirectory cvs, String filename, UpdateHandler handler) throws CvsException(Code)
Check this file status. We just run the update command with the -n toggle.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  handler - The underlying update handler callback.
exception:
  CvsException - If the CVS process failed.



cvsLoad
void cvsLoad(CvsDirectory cvs, String filename, UpdateHandler handler, StatusHandler statush) throws CvsException(Code)
Check this file status. We just run the update command and the status with the -n toggle.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  handler - The underlying update handler callback.
Parameters:
  statush - The underlying status handler callback.
exception:
  CvsException - If the CVS process failed.



cvsLoad
void cvsLoad(CvsDirectory cvs, UpdateHandler handler, StatusHandler statush) throws CvsException(Code)
Check all this directory files status. We just run the update command and the status with the -n toggle.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  handler - The underlying update handler callback.
Parameters:
  statush - The underlying status handler callback.
exception:
  CvsException - If the CVS process failed.



cvsLog
String cvsLog(CvsDirectory cvs, String name) throws CvsException(Code)
Run the log command on the given file
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  name - The name of the file to log.
exception:
  CvsException - If the CVS command failed. A String containing the file's log.



cvsRemove
void cvsRemove(CvsDirectory cvs, String names) throws CvsException(Code)
Run the remove command.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  names - The name of the files to remove locally.
exception:
  CvsException - If the CVS command failed.



cvsRevert
void cvsRevert(CvsDirectory cvs, String name, String revision, OutputStream out, String env) throws CvsException(Code)
Run the 'update -p -r ' command.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  name - The file name to which the update command applies.
Parameters:
  revision - The revision to retrieve
Parameters:
  out - The OutputStream
exception:
  CvsException - If the underlying CVS process fails



cvsRevert
void cvsRevert(CvsDirectory cvs, String name, String revision, File file, String env) throws CvsException(Code)
Run the 'update -p -r ' command.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  name - The file name to which the update command applies.
Parameters:
  revision - The revision to retrieve
Parameters:
  file - The local file
exception:
  CvsException - If the underlying CVS process fails



cvsStatus
void cvsStatus(CvsDirectory cvs, String filename, StatusHandler statush) throws CvsException(Code)
Check this directory file status. We just run the update command with the -n toggle.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  statush - The underlying status handler callback.
exception:
  CvsException - If the CVS process failed.



cvsUpdate
void cvsUpdate(CvsDirectory cvs, String names, UpdateHandler handler) throws CvsException(Code)
Run the update command.
Parameters:
  names - The file names to which the update command applies.
Parameters:
  handler - The CVS output parsing handler.
exception:
  CvsException - If the underlying CVS process fails.
See Also:   UpdateHandler



cvsUpdate
void cvsUpdate(CvsDirectory cvs, UpdateHandler handler) throws CvsException(Code)
Run the update command on the whole directory. (not recursivly)
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  handler - The CVS output handler.
exception:
  CvsException - If something failed.



cvsUpdateDirectory
void cvsUpdateDirectory(CvsDirectory cvs, File subdir, UpdateHandler handler) throws CvsException(Code)
Update a directory.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  subdir - The sub-directory of the above that needs to be updated.
Parameters:
  handler - The CVS output handler.
exception:
  CvsException - If the CVS process fails.



error
protected void error(String mth, String msg) throws CvsException(Code)
Emit an error. Some abnormal situation occured, emit an error message.
Parameters:
  mth - The method in which the error occured.
Parameters:
  msg - The message to emit.
exception:
  CvsException - The exception that will be thrown as a result of the error.



getCommand
protected String[] getCommand(CvsDirectory cvs, String cvsopts, String cmdopts)(Code)
Get the CVS command String array.
Parameters:
  cvs - The target CvsDirectory in which the command is to be run.
Parameters:
  cvsopts - The CVS wide options.
Parameters:
  cmdopts - The command, and its optional options. A String array, giving the command to be executed.



getQuotedFilename
protected String getQuotedFilename(String line)(Code)
Get a filename between quote contained in this String. the filename of null.



getTemporaryFile
File getTemporaryFile(String string) throws CvsException(Code)
Dump the given string into a temporary file. This is used for th -f argument of the cvs commit command. This method should only be used from a synchronized method.
Parameters:
  string - The string to dump.



readError
protected StringBuffer readError(InputStream procin, StringBuffer into) throws IOException, CvsException(Code)
Parse the error message and throw an exception if necessary.
exception:
  UpToDateCheckFailedException - if file was not up to date.
exception:
  CvsAddException - if an error ocurs during add.
exception:
  IOException - if an IO error occurs.



runCvsProcess
protected Process runCvsProcess(String args) throws IOException(Code)
Run a cvs command, return the process object.
Parameters:
  args - The command to run.
exception:
  IOException - If the process couldn't be launched.



runCvsProcess
protected Process runCvsProcess(String args, String env) throws IOException(Code)
Run a cvs command, return the process object.
Parameters:
  args - The command to run.
Parameters:
  env - The extra environment.
exception:
  IOException - If the process couldn't be launched.



waitForCompletion
protected synchronized void waitForCompletion(Process proc, boolean ccode) throws CvsException(Code)
Wait for the underlying CVS process to finish. Once the process is terminated, all relevant streams are closed, and an exception if potentially thrown if the process indicated failure.
Parameters:
  proc - The CVS process.
Parameters:
  ccode - Should we expect a zero status from the child process.
exception:
  CvsException - If a zero status is expected, and the CVSprocess exit status is not zero.



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.