Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.taskdefs.cvslib
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

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

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.AbstractCvsTask
`DEFAULT_COMPRESSION_LEVEL`

Fields inherited from class org.apache.tools.ant.Task
`description, location, target, taskName, taskType, wrapper`

Fields inherited from class org.apache.tools.ant.ProjectComponent
`project`

Constructor Summary
`CvsVersion()`

Method Summary
`void` | `execute()` the execute method running CvsVersion
`java.lang.String` | `getClientVersion()` get the CVS client version
`java.lang.String` | `getServerVersion()` get the CVS server version
`void` | `setClientVersionProperty(java.lang.String clientVersionProperty)` set a property where to store the CVS client version
`void` | `setServerVersionProperty(java.lang.String serverVersionProperty)` set a property where to store the CVS server version
`boolean` | `supportsCvsLogWithSOption()` find out if the server version supports log with S option

Methods inherited from class org.apache.tools.ant.taskdefs.AbstractCvsTask
`addCommandArgument, addCommandArgument, addConfiguredCommandline, addConfiguredCommandline, configureCommandline, getCommand, getCvsRoot, getCvsRsh, getDest, getErrorStream, getExecuteStreamHandler, 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.Task
`getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType`

Methods inherited from class org.apache.tools.ant.ProjectComponent
`getProject, setProject`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CvsVersion

    public CvsVersion()

Method Detail

### getClientVersion

    public java.lang.String getClientVersion()

  get the CVS client version

  Returns:
    CVS client version

### getServerVersion

    public java.lang.String getServerVersion()

  get the CVS server version

  Returns:
    CVS server version

### setClientVersionProperty

    public void setClientVersionProperty(java.lang.String clientVersionProperty)

  set a property where to store the CVS client version

  Parameters:
    `clientVersionProperty` - property for CVS client version

### setServerVersionProperty

    public void setServerVersionProperty(java.lang.String serverVersionProperty)

  set a property where to store the CVS server version

  Parameters:
    `serverVersionProperty` - property for CVS server version

### supportsCvsLogWithSOption

    public 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

### execute

    public void execute()

  the execute method running CvsVersion

  Overrides:
    `execute` in class `AbstractCvsTask`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.