org.apache.tools.ant.taskdefs.cvslib

Class 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

UNKNOWN: category="scm"

Method Summary
voidexecute()
the execute method running CvsVersion
StringgetClientVersion()
get the CVS client version
StringgetServerVersion()
get the CVS server version
voidsetClientVersionProperty(String clientVersionProperty)
set a property where to store the CVS client version
voidsetServerVersionProperty(String serverVersionProperty)
set a property where to store the CVS server version
booleansupportsCvsLogWithSOption()
find out if the server version supports log with S option

Method Detail

execute

public void execute()
the execute method running CvsVersion

getClientVersion

public String getClientVersion()
get the CVS client version

Returns: CVS client version

getServerVersion

public String getServerVersion()
get the CVS server version

Returns: CVS server version

setClientVersionProperty

public void setClientVersionProperty(String clientVersionProperty)
set a property where to store the CVS client version

Parameters: clientVersionProperty property for CVS client version

setServerVersionProperty

public void setServerVersionProperty(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

Copyright