Java Doc for AbstractCvsTask.java in  » Build » ANT » org » apache » tools » ant » taskdefs » 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 » ANT » org.apache.tools.ant.taskdefs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.Task
   org.apache.tools.ant.taskdefs.AbstractCvsTask

All known Subclasses:   org.apache.tools.ant.taskdefs.Cvs,  org.apache.tools.ant.taskdefs.cvslib.CvsVersion,  org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff,  org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask,
AbstractCvsTask
abstract public class AbstractCvsTask extends Task (Code)
original Cvs.java 1.20 NOTE: This implementation has been moved here from Cvs.java with the addition of some accessors for extensibility. Another task can extend this with some customized output processing.
since:
   Ant 1.5


Field Summary
final public static  intDEFAULT_COMPRESSION_LEVEL
     Default compression level to use, if compression is enabled via setCompression( true ).

Constructor Summary
public  AbstractCvsTask()
    

Method Summary
public  voidaddCommandArgument(String arg)
     This needs to be public to allow configuration of commands externally.
public  voidaddCommandArgument(Commandline c, String arg)
     This method adds a command line argument to an external command.
public  voidaddConfiguredCommandline(Commandline c)
     Adds direct command-line to execute.
public  voidaddConfiguredCommandline(Commandline c, boolean insertAtStart)
     Configures and adds the given Commandline.
protected  voidconfigureCommandline(Commandline c)
     Configure a commandline element for things like cvsRoot, quiet, etc.
public  voidexecute()
    
public  StringgetCommand()
    
public  StringgetCvsRoot()
    
public  StringgetCvsRsh()
    
public  FilegetDest()
    
protected  OutputStreamgetErrorStream()
    
protected  ExecuteStreamHandlergetExecuteStreamHandler()
    
protected  OutputStreamgetOutputStream()
    
public  StringgetPackage()
    
public  FilegetPassFile()
    
public  intgetPort()
    
public  StringgetTag()
    
protected  voidremoveCommandline(Commandline c)
    
protected  voidrunCommand(Commandline toExecute)
     Sets up the environment for toExecute and then runs it.
public  voidsetAppend(boolean value)
     Whether to append output/error when redirecting to a file.
public  voidsetCommand(String c)
     The CVS command to execute.
public  voidsetCompression(boolean usecomp)
     If true, this is the same as compressionlevel="3".
public  voidsetCompressionLevel(int level)
     If set to a value 1-9 it adds -zN to the cvs command line, else it disables compression.
public  voidsetCvsRoot(String root)
     The CVSROOT variable.
public  voidsetCvsRsh(String rsh)
     The CVS_RSH variable.
public  voidsetDate(String p)
     Use the most recent revision no later than the given date.
public  voidsetDest(File dest)
     The directory where the checked out files should be placed.
public  voidsetError(File error)
     The file to direct standard error from the command.
protected  voidsetErrorStream(OutputStream errorStream)
    
public  voidsetExecuteStreamHandler(ExecuteStreamHandler handler)
    
public  voidsetFailOnError(boolean failOnError)
     Stop the build process if the command exits with a return code other than 0.
public  voidsetNoexec(boolean ne)
     If true, report only and don't change any files.
public  voidsetOutput(File output)
     The file to direct standard output from the command.
protected  voidsetOutputStream(OutputStream outputStream)
    
public  voidsetPackage(String p)
     The package/module to operate upon.
public  voidsetPassfile(File passFile)
     Password file to read passwords from.
public  voidsetPort(int port)
     Port used by CVS to communicate with the server.
public  voidsetQuiet(boolean q)
     If true, suppress informational messages.
public  voidsetReallyquiet(boolean q)
     If true, suppress all messages.
public  voidsetTag(String p)
     The tag of the package/module to operate upon.

Field Detail
DEFAULT_COMPRESSION_LEVEL
final public static int DEFAULT_COMPRESSION_LEVEL(Code)
Default compression level to use, if compression is enabled via setCompression( true ).




Constructor Detail
AbstractCvsTask
public AbstractCvsTask()(Code)
empty no-arg constructor




Method Detail
addCommandArgument
public void addCommandArgument(String arg)(Code)
This needs to be public to allow configuration of commands externally.
Parameters:
  arg - command argument



addCommandArgument
public void addCommandArgument(Commandline c, String arg)(Code)
This method adds a command line argument to an external command. I do not understand what this method does in this class ??? particularly not why it is public ???? AntoineLL July 23d 2003
Parameters:
  c - command line to which one argument should be added
Parameters:
  arg - argument to add



addConfiguredCommandline
public void addConfiguredCommandline(Commandline c)(Code)
Adds direct command-line to execute.
Parameters:
  c - command line to execute



addConfiguredCommandline
public void addConfiguredCommandline(Commandline c, boolean insertAtStart)(Code)
Configures and adds the given Commandline.
Parameters:
  c - commandline to insert
Parameters:
  insertAtStart - If true, c isinserted at the beginning of the vector of command lines



configureCommandline
protected void configureCommandline(Commandline c)(Code)
Configure a commandline element for things like cvsRoot, quiet, etc.
Parameters:
  c - the command line which will be configuredif the commandline is initially null, the function is a noopotherwise the function append to the commandline arguments concerning
  • cvs package
  • compression
  • quiet or reallyquiet
  • cvsroot
  • noexec



execute
public void execute() throws BuildException(Code)
do the work
throws:
  BuildException - if failonerror is set to true and thecvs command fails.



getCommand
public String getCommand()(Code)
accessor to a command line as string This should be deprecated AntoineLL July 23d 2003 command line as string



getCvsRoot
public String getCvsRoot()(Code)
access the CVSROOT variable CVSROOT



getCvsRsh
public String getCvsRsh()(Code)
access the CVS_RSH variable the CVS_RSH variable



getDest
public File getDest()(Code)
get the file where the checked out files should be placed directory where the checked out files should be placed



getErrorStream
protected OutputStream getErrorStream()(Code)
access the stream to which the stderr from cvs should go if this stream has already been set, it will be returned if the stream has not yet been set, if the attribute error has been set, the output stream will go to the file denoted by the error attribute otherwise the stderr output will go to ant's logging system output stream to which cvs' stderr should go to



getExecuteStreamHandler
protected ExecuteStreamHandler getExecuteStreamHandler()(Code)
find the handler and instantiate it if it does not exist yet handler for output and error streams



getOutputStream
protected OutputStream getOutputStream()(Code)
access the stream to which the stdout from cvs should go if this stream has already been set, it will be returned if the stream has not yet been set, if the attribute output has been set, the output stream will go to the output file otherwise the output will go to ant's logging system output stream to which cvs' stdout should go to



getPackage
public String getPackage()(Code)
access the package or module to operate upon package/module



getPassFile
public File getPassFile()(Code)
find the password file password file



getPort
public int getPort()(Code)
access the port of CVS the port of CVS



getTag
public String getTag()(Code)
tag or branch tag or branch
since:
   ant 1.6.1



removeCommandline
protected void removeCommandline(Commandline c)(Code)
remove a particular command from a vector of command lines
Parameters:
  c - command line which should be removed



runCommand
protected void runCommand(Commandline toExecute) throws BuildException(Code)
Sets up the environment for toExecute and then runs it.
Parameters:
  toExecute - the command line to execute
throws:
  BuildException - if failonError is set to true and the cvs command fails



setAppend
public void setAppend(boolean value)(Code)
Whether to append output/error when redirecting to a file.
Parameters:
  value - true indicated you want to append



setCommand
public void setCommand(String c)(Code)
The CVS command to execute. This should be deprecated, it is better to use the Commandline class ? AntoineLL July 23d 2003
Parameters:
  c - a command as string



setCompression
public void setCompression(boolean usecomp)(Code)
If true, this is the same as compressionlevel="3".
Parameters:
  usecomp - If true, turns on compression using defaultlevel, AbstractCvsTask.DEFAULT_COMPRESSION_LEVEL.



setCompressionLevel
public void setCompressionLevel(int level)(Code)
If set to a value 1-9 it adds -zN to the cvs command line, else it disables compression.
Parameters:
  level - compression level 1 to 9



setCvsRoot
public void setCvsRoot(String root)(Code)
The CVSROOT variable.
Parameters:
  root - the CVSROOT variable



setCvsRsh
public void setCvsRsh(String rsh)(Code)
The CVS_RSH variable.
Parameters:
  rsh - the CVS_RSH variable



setDate
public void setDate(String p)(Code)
Use the most recent revision no later than the given date.
Parameters:
  p - a date as string in a format that the CVS executablecan understand see man cvs



setDest
public void setDest(File dest)(Code)
The directory where the checked out files should be placed.

Note that this is different from CVS's -d command line switch as Ant will never shorten pathnames to avoid empty directories.


Parameters:
  dest - directory where the checked out files should be placed



setError
public void setError(File error)(Code)
The file to direct standard error from the command.
Parameters:
  error - a file to which stderr should go



setErrorStream
protected void setErrorStream(OutputStream errorStream)(Code)
sets a stream to which the stderr from the cvs exe should go
Parameters:
  errorStream - an output stream willing to process stderr



setExecuteStreamHandler
public void setExecuteStreamHandler(ExecuteStreamHandler handler)(Code)
sets the handler
Parameters:
  handler - a handler able of processing the output and error streams from the cvs exe



setFailOnError
public void setFailOnError(boolean failOnError)(Code)
Stop the build process if the command exits with a return code other than 0. Defaults to false.
Parameters:
  failOnError - stop the build process if the command exits witha return code other than 0



setNoexec
public void setNoexec(boolean ne)(Code)
If true, report only and don't change any files.
Parameters:
  ne - if true, report only and do not change any files.



setOutput
public void setOutput(File output)(Code)
The file to direct standard output from the command.
Parameters:
  output - a file to which stdout should go



setOutputStream
protected void setOutputStream(OutputStream outputStream)(Code)
sets a stream to which the output from the cvs executable should be sent
Parameters:
  outputStream - stream to which the stdout from cvs should go



setPackage
public void setPackage(String p)(Code)
The package/module to operate upon.
Parameters:
  p - package or module to operate upon



setPassfile
public void setPassfile(File passFile)(Code)
Password file to read passwords from.
Parameters:
  passFile - password file to read passwords from



setPort
public void setPort(int port)(Code)
Port used by CVS to communicate with the server.
Parameters:
  port - port of CVS



setQuiet
public void setQuiet(boolean q)(Code)
If true, suppress informational messages.
Parameters:
  q - if true, suppress informational messages



setReallyquiet
public void setReallyquiet(boolean q)(Code)
If true, suppress all messages.
Parameters:
  q - if true, suppress all messages
since:
   Ant 1.6



setTag
public void setTag(String p)(Code)
The tag of the package/module to operate upon.
Parameters:
  p - tag



Fields inherited from org.apache.tools.ant.Task
protected Target target(Code)(Java Doc)
protected String taskName(Code)(Java Doc)
protected String taskType(Code)(Java Doc)
protected RuntimeConfigurable wrapper(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.Task
final public void bindToOwner(Task owner)(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
public Target getOwningTarget()(Code)(Java Doc)
public RuntimeConfigurable getRuntimeConfigurableWrapper()(Code)(Java Doc)
public String getTaskName()(Code)(Java Doc)
public String getTaskType()(Code)(Java Doc)
protected RuntimeConfigurable getWrapper()(Code)(Java Doc)
protected void handleErrorFlush(String output)(Code)(Java Doc)
protected void handleErrorOutput(String output)(Code)(Java Doc)
protected void handleFlush(String output)(Code)(Java Doc)
protected int handleInput(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
protected void handleOutput(String output)(Code)(Java Doc)
public void init() throws BuildException(Code)(Java Doc)
final protected boolean isInvalid()(Code)(Java Doc)
public void log(String msg)(Code)(Java Doc)
public void log(String msg, int msgLevel)(Code)(Java Doc)
public void log(Throwable t, int msgLevel)(Code)(Java Doc)
public void log(String msg, Throwable t, int msgLevel)(Code)(Java Doc)
public void maybeConfigure() throws BuildException(Code)(Java Doc)
final public void perform()(Code)(Java Doc)
public void reconfigure()(Code)(Java Doc)
public void setOwningTarget(Target target)(Code)(Java Doc)
public void setRuntimeConfigurableWrapper(RuntimeConfigurable wrapper)(Code)(Java Doc)
public void setTaskName(String name)(Code)(Java Doc)
public void setTaskType(String type)(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.