Java Doc for AccurevCommandline.java in  » Build » cruisecontrol » net » sourceforge » cruisecontrol » sourcecontrols » accurev » 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.accurev 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sourceforge.cruisecontrol.util.EnvCommandline
   net.sourceforge.cruisecontrol.sourcecontrols.accurev.AccurevCommandline

AccurevCommandline
public class AccurevCommandline extends EnvCommandline implements AccurevInputParser,Runner(Code)
Allows to build and execute a valid accurev command line.
author:
   Nicola Orru'
author:
   Jason Chown



Constructor Summary
public  AccurevCommandline(AccurevCommand command)
     Creates a new AccurevCommandline.

Method Summary
public  voidaddArgument(String argument)
     Adds an argument to the command line
Parameters:
  argument - the argument to add (eg "-i").
public  voidaddOption(String option, String optionArgument)
     Adds an option with an argument (eg.
public  voidassertSuccess()
     Throws a CruiseControlException if the last command was not executed successfully.
protected  String[]buildCommandLine()
    
public  booleanexecute(AccurevInputParser inputParser)
    
public  AccurevCommandgetCommand()
     Returns the accurev subcommand to be run by this command line object (eg.
public  intgetReturnCode()
     Gets the last "accurev" exec's return code. the return code from the command line.
public  booleanisSuccess()
     Returns the run status true if the last command executed successfully (that is, returnCode == success and theparser didn't detect errors).
public  booleanisVerbose()
    
public  booleanparseStream(InputStream iStream)
     Default stream parser.
public  voidrun()
     Runs accurev and returns a reference to this.
public  voidselectModified()
    
public  voidsetComment(String comment)
     Sets the transaction comment (-c comment)
Parameters:
  comment - the comment text.
public  voidsetDepot(String depot)
    
public  voidsetFileList(String filelistName)
    
public  voidsetFormatExpanded(char format)
    
public  voidsetInfoOnly()
    
public  voidsetInputParser(AccurevInputParser inputParser)
     Sets the input parser, which is the object that handles Accurev's output as its input.
public  voidsetRunner(Runner runner)
    
public  voidsetStream(String stream)
    
public  voidsetTransactionRange(Timespec time)
    
public  voidsetTransactionRange(Timespec begin, Timespec end)
    
public  voidsetVerbose(boolean verbose)
    
public  voidsetWorkspaceLocalPath(File workspace)
     Selects the workspace to use, specifying its path in the local filesystem.
public  voidsetWorkspaceLocalPath(String workspace)
     Selects the workspace to use, specifying its path in the local filesystem.


Constructor Detail
AccurevCommandline
public AccurevCommandline(AccurevCommand command)(Code)
Creates a new AccurevCommandline.
Parameters:
  command -




Method Detail
addArgument
public void addArgument(String argument)(Code)
Adds an argument to the command line
Parameters:
  argument - the argument to add (eg "-i"). Quotes and escape codes are not required.



addOption
public void addOption(String option, String optionArgument)(Code)
Adds an option with an argument (eg. -s my_stream)
Parameters:
  option - the option flag (eg. "-s")
Parameters:
  optionArgument - the option argument ("eg. my_stream"). No need for quotes or escape characters.



assertSuccess
public void assertSuccess() throws CruiseControlException(Code)
Throws a CruiseControlException if the last command was not executed successfully.
throws:
  CruiseControlException - if the command was not executed successfully



buildCommandLine
protected String[] buildCommandLine()(Code)



execute
public boolean execute(AccurevInputParser inputParser)(Code)
Runs accurev and parses the output true if there are no parsing errors.



getCommand
public AccurevCommand getCommand()(Code)
Returns the accurev subcommand to be run by this command line object (eg. keep, synctime, update). The subcommand can be selected by the AccurevCommandline.AccurevCommandline(AccurevCommand command) constructor. the command



getReturnCode
public int getReturnCode()(Code)
Gets the last "accurev" exec's return code. the return code from the command line. Usually 0 is SUCCESS.



isSuccess
public boolean isSuccess()(Code)
Returns the run status true if the last command executed successfully (that is, returnCode == success and theparser didn't detect errors). It returns false if the command has not been run yet.



isVerbose
public boolean isVerbose()(Code)
Returns the verbose flag true if verbose logging is enabled



parseStream
public boolean parseStream(InputStream iStream) throws CruiseControlException(Code)
Default stream parser. It scans Accurev output and detects basic errors. true if no errors were found in Accurev's output.



run
public void run()(Code)
Runs accurev and returns a reference to this.



selectModified
public void selectModified()(Code)
Selects all modified files in keep (as in -m)



setComment
public void setComment(String comment)(Code)
Sets the transaction comment (-c comment)
Parameters:
  comment - the comment text. Quotes and escapes are not required.



setDepot
public void setDepot(String depot)(Code)
Sets the Accurev depot to work in (-d depot)
Parameters:
  depot - the depot name



setFileList
public void setFileList(String filelistName)(Code)
Selects the files to use reading them from the filelist (as in -l filelistName)
Parameters:
  filelistName - the path of the file containing the list of files to process



setFormatExpanded
public void setFormatExpanded(char format) throws CruiseControlException(Code)
Selects a format for hist as in (-f)



setInfoOnly
public void setInfoOnly()(Code)
Switches the -i option on



setInputParser
public void setInputParser(AccurevInputParser inputParser)(Code)
Sets the input parser, which is the object that handles Accurev's output as its input.



setRunner
public void setRunner(Runner runner)(Code)
Sets the runner
Parameters:
  runner - the object that is in charge for provide some input to the parser



setStream
public void setStream(String stream)(Code)
Sets the Accurev stream to work in (-s stream)
Parameters:
  stream - the stream name



setTransactionRange
public void setTransactionRange(Timespec time)(Code)
Selects a transaction range for hist as in (-t), single timespec
Parameters:
  time - a timespec (can be a DateTimespec, a KeywordTimespec



setTransactionRange
public void setTransactionRange(Timespec begin, Timespec end)(Code)
Selects a transaction range for hist as in (-t), timespec span (a-b, a-, -b)



setVerbose
public void setVerbose(boolean verbose)(Code)
Enables/disables verbose logging
Parameters:
  verbose - if true, verbose logging is enabled.



setWorkspaceLocalPath
public void setWorkspaceLocalPath(File workspace) throws CruiseControlException(Code)
Selects the workspace to use, specifying its path in the local filesystem.
Parameters:
  workspace - the workspace path
throws:
  CruiseControlException - if the path does not exist



setWorkspaceLocalPath
public void setWorkspaceLocalPath(String workspace) throws CruiseControlException(Code)
Selects the workspace to use, specifying its path in the local filesystem.
Parameters:
  workspace - the workspace path
throws:
  CruiseControlException - if the path does not exist



Methods inherited from net.sourceforge.cruisecontrol.util.EnvCommandline
public Process execute() throws IOException(Code)(Java Doc)
public String getVariable(String var)(Code)(Java Doc)
public void setVariable(String var, String value)(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.