2018-12-21 11:20:43 +01:00
|
|
|
<!DOCTYPE html>
|
2006-09-11 04:19:00 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
2019-05-25 13:41:47 +02:00
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
2006-09-11 04:19:00 +00:00
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2018-12-21 11:20:43 +01:00
|
|
|
<html lang="en">
|
2004-01-28 22:47:14 +00:00
|
|
|
|
|
|
|
<head>
|
2007-05-02 06:15:35 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
|
|
|
<title>CVSVersion Task</title>
|
2004-01-28 22:47:14 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2018-01-22 23:52:21 +01:00
|
|
|
<h2 id="cvs">CvsVersion</h2>
|
2018-03-04 15:17:41 +01:00
|
|
|
<p><em>Since Apache Ant 1.6.1</em>.</p>
|
2004-01-28 22:47:14 +00:00
|
|
|
<h3>Description</h3>
|
2018-03-04 15:17:41 +01:00
|
|
|
<p>This task allows to retrieve a CVS client and server version.</p>
|
2004-01-28 22:47:14 +00:00
|
|
|
<h3>Parameters</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<table class="attr">
|
2004-01-28 22:47:14 +00:00
|
|
|
<tr>
|
2018-05-15 10:29:27 +02:00
|
|
|
<th scope="col">Attribute</th>
|
|
|
|
<th scope="col">Description</th>
|
|
|
|
<th scope="col">Required</th>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td colspan="3" class="left">Attributes from parent <code><cvs></code> task which are
|
|
|
|
meaningful here</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>cvsRoot</td>
|
|
|
|
<td>the <code>CVSROOT</code> variable.</td>
|
|
|
|
<td>No</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>cvsRsh</td>
|
|
|
|
<td>the <code>CVS_RSH</code> variable.</td>
|
|
|
|
<td>No</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>dest</td>
|
|
|
|
<td>directory containing the checked out version of the project</td>
|
|
|
|
<td>No; default is project's <var>basedir</var></td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>package</td>
|
|
|
|
<td>the package/module to check out.</td>
|
|
|
|
<td>No</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>port</td>
|
|
|
|
<td>Port used by CVS to communicate with the server.</td>
|
|
|
|
<td>No; default is <q>2401</q></td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>passfile</td>
|
|
|
|
<td>Password file to read passwords from.</td>
|
|
|
|
<td>No; default is <q>~/.cvspass</q></td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>failonerror</td>
|
|
|
|
<td>Stop the build process if the command exits with a return code other than <q>0</q>.</td>
|
|
|
|
<td>No; defaults to <q>false</q></td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td colspan="3" class="left">Specific attributes</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>clientversionproperty</td>
|
|
|
|
<td>Name of a property where the CVS client version should be stored</td>
|
|
|
|
<td>No</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>serverversionproperty</td>
|
|
|
|
<td>Name of a property where the CVS server version should be stored</td>
|
|
|
|
<td>No</td>
|
2004-01-28 22:47:14 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Examples</h3>
|
2018-05-15 09:51:58 +02:00
|
|
|
|
|
|
|
<p>Find out the CVS client and server versions and store the versions in the properties
|
|
|
|
called <code>apachecvsversion</code> and <code>localcvsversion</code></p>
|
2018-02-28 07:58:59 +01:00
|
|
|
<pre>
|
|
|
|
<cvsversion cvsRoot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic"
|
|
|
|
passfile="/home/myself/.cvspass"
|
|
|
|
serverversionproperty="apachecvsversion"
|
|
|
|
clientversionproperty="localcvsversion"/></pre>
|
2004-01-28 22:47:14 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|