Class CvsVersion
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.apache.tools.ant.taskdefs.AbstractCvsTask
- 
- org.apache.tools.ant.taskdefs.cvslib.CvsVersion
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class CvsVersion extends AbstractCvsTask this task allows to find out the client and the server version of a CVS installation example usage : <cvsversion cvsRoot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic" passfile="c:/programme/cygwin/home/antoine/.cvspass" clientversionproperty="apacheclient" serverversionproperty="apacheserver" /> the task can be used also in the API by calling its execute method, then calling getServerVersion and/or getClientVersion- Since:
- ant 1.6.1
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.AbstractCvsTaskAbstractCvsTask.Module
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tools.ant.taskdefs.AbstractCvsTaskDEFAULT_COMPRESSION_LEVEL
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description CvsVersion()
 - 
Method SummaryModifier and Type Method Description voidexecute()the execute method running CvsVersionjava.lang.StringgetClientVersion()Get the CVS client versionjava.lang.StringgetServerVersion()Get the CVS server versionvoidsetClientVersionProperty(java.lang.String clientVersionProperty)Set a property where to store the CVS client versionvoidsetServerVersionProperty(java.lang.String serverVersionProperty)Set a property where to store the CVS server versionbooleansupportsCvsLogWithSOption()Find out if the server version supports log with S option- 
Methods inherited from class org.apache.tools.ant.taskdefs.AbstractCvsTaskaddCommandArgument, addCommandArgument, addConfiguredCommandline, addConfiguredCommandline, addModule, configureCommandline, getCommand, getCvsRoot, getCvsRsh, getDest, getErrorStream, getExecuteStreamHandler, getModules, getOutputStream, getPackage, getPassFile, getPort, getTag, removeCommandline, runCommand, setAppend, setCommand, setCompression, setCompressionLevel, setCvsRoot, setCvsRsh, setDate, setDest, setError, setErrorStream, setExecuteStreamHandler, setFailOnError, setNoexec, setOutput, setOutputStream, setPackage, setPassfile, setPort, setQuiet, setReallyquiet, setTag
 - 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
getClientVersionpublic java.lang.String getClientVersion() Get the CVS client version- Returns:
- CVS client version
 
 - 
getServerVersionpublic java.lang.String getServerVersion() Get the CVS server version- Returns:
- CVS server version
 
 - 
setClientVersionPropertypublic void setClientVersionProperty(java.lang.String clientVersionProperty) Set a property where to store the CVS client version- Parameters:
- clientVersionProperty- property for CVS client version
 
 - 
setServerVersionPropertypublic void setServerVersionProperty(java.lang.String serverVersionProperty) Set a property where to store the CVS server version- Parameters:
- serverVersionProperty- property for CVS server version
 
 - 
supportsCvsLogWithSOptionpublic boolean supportsCvsLogWithSOption() Find out if the server version supports log with S option- Returns:
- boolean indicating if the server version supports log with S option
 
 - 
executepublic void execute() the execute method running CvsVersion- Overrides:
- executein class- AbstractCvsTask
 
 
- 
 
-