Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.cvslib

public Class CvsVersion

extends AbstractCvsTask
Class Inheritance
Imports
java.io.ByteArrayOutputStream, java.util.StringTokenizer, org.apache.tools.ant.Project, org.apache.tools.ant.taskdefs.AbstractCvsTask

this task allows to find out the client and the server version of a CVS installation example usage : <cvsversion cvsRoot=":pserver:[email protected]:/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

Modifier and TypeField and Description
private String
private String
pack-priv static final long
private String
private String
pack-priv static final long
Inherited from org.apache.tools.ant.taskdefs.AbstractCvsTask:
DEFAULT_COMPRESSION_LEVEL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Overrides org.apache.tools.ant.taskdefs.AbstractCvsTask.execute.

the execute method running CvsVersion
public String

Returns:

CVS client version
getClientVersion
()

Get the CVS client version

public String

Returns:

CVS server version
getServerVersion
()

Get the CVS server version

public void
setClientVersionProperty(String
property for CVS client version
clientVersionProperty
)

Set a property where to store the CVS client version

public void
setServerVersionProperty(String
property for CVS server version
serverVersionProperty
)

Set a property where to store the CVS server version

public boolean

Returns:

boolean indicating if the server version supports log with S option
supportsCvsLogWithSOption
()

Find out if the server version supports log with S option

Inherited from org.apache.tools.ant.taskdefs.AbstractCvsTask:
addCommandArgumentaddCommandArgumentaddConfiguredCommandlineaddConfiguredCommandlineaddModuleconfigureCommandlinegetCommandgetCvsRootgetCvsRshgetDestgetErrorStreamgetExecuteStreamHandlergetModulesgetOutputStreamgetPackagegetPassFilegetPortgetTagremoveCommandlinerunCommandsetAppendsetCommandsetCompressionsetCompressionLevelsetCvsRootsetCvsRshsetDatesetDestsetErrorsetErrorStreamsetExecuteStreamHandlersetFailOnErrorsetNoexecsetOutputsetOutputStreamsetPackagesetPassfilesetPortsetQuietsetReallyquietsetTag

Field Detail

clientVersionback to summary
private String clientVersion
clientVersionPropertyback to summary
private String clientVersionProperty
MULTIPLYback to summary
pack-priv static final long MULTIPLY
serverVersionback to summary
private String serverVersion
serverVersionPropertyback to summary
private String serverVersionProperty
VERSION_1_11_2back to summary
pack-priv static final long VERSION_1_11_2

Constructor Detail

CvsVersionback to summary
public CvsVersion()

Method Detail

executeback to summary
public void execute()

Overrides org.apache.tools.ant.taskdefs.AbstractCvsTask.execute.

the execute method running CvsVersion

Annotations
@Override
getClientVersionback to summary
public String getClientVersion()

Get the CVS client version

Returns:String

CVS client version

getServerVersionback to summary
public String getServerVersion()

Get the CVS server version

Returns:String

CVS server version

setClientVersionPropertyback to summary
public void setClientVersionProperty(String clientVersionProperty)

Set a property where to store the CVS client version

Parameters
clientVersionProperty:String

property for CVS client version

setServerVersionPropertyback to summary
public void setServerVersionProperty(String serverVersionProperty)

Set a property where to store the CVS server version

Parameters
serverVersionProperty:String

property for CVS server version

supportsCvsLogWithSOptionback to summary
public boolean supportsCvsLogWithSOption()

Find out if the server version supports log with S option

Returns:boolean

boolean indicating if the server version supports log with S option