1 | <!--
|
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | contributor license agreements. See the NOTICE file distributed with
|
---|
4 | this work for additional information regarding copyright ownership.
|
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | (the "License"); you may not use this file except in compliance with
|
---|
7 | the License. You may obtain a copy of the License at
|
---|
8 |
|
---|
9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 |
|
---|
11 | Unless required by applicable law or agreed to in writing, software
|
---|
12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | See the License for the specific language governing permissions and
|
---|
15 | limitations under the License.
|
---|
16 | -->
|
---|
17 | <html>
|
---|
18 |
|
---|
19 | <head>
|
---|
20 | <meta http-equiv="Content-Language" content="en-us">
|
---|
21 | <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
---|
22 | <title>CVSVersion Task</title>
|
---|
23 | <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
|
---|
24 | </head>
|
---|
25 |
|
---|
26 | <body>
|
---|
27 |
|
---|
28 | <h2><a name="cvs">CvsVersion</a></h2>
|
---|
29 | <h3>Description</h3>
|
---|
30 | <p>
|
---|
31 | This task allows to retrieve a CVS client and server version.
|
---|
32 | <i>Since Ant 1.6.1.</i>
|
---|
33 | </p>
|
---|
34 | <h3>Parameters</h3>
|
---|
35 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
36 | <tr>
|
---|
37 | <td valign="top"><b>Attribute</b></td>
|
---|
38 | <td valign="top"><b>Description</b></td>
|
---|
39 | <td align="center" valign="top"><b>Required</b></td>
|
---|
40 | </tr>
|
---|
41 | <tr>
|
---|
42 | <td colspan="3">Attributes from parent Cvs task which are meaningful here</td>
|
---|
43 | </tr>
|
---|
44 | <tr>
|
---|
45 | <td valign="top">cvsRoot</td>
|
---|
46 | <td valign="top">the <code>CVSROOT</code> variable.</td>
|
---|
47 | <td align="center" valign="top">No</td>
|
---|
48 | </tr>
|
---|
49 | <tr>
|
---|
50 | <td valign="top">cvsRsh</td>
|
---|
51 | <td valign="top">the <code>CVS_RSH</code> variable.</td>
|
---|
52 | <td align="center" valign="top">No</td>
|
---|
53 | </tr>
|
---|
54 | <tr>
|
---|
55 | <td valign="top">dest</td>
|
---|
56 | <td valign="top">directory containing the checked out version of the project</td>
|
---|
57 | <td align="center" valign="top">No, default is project's basedir.</td>
|
---|
58 | </tr>
|
---|
59 | <tr>
|
---|
60 | <td valign="top">package</td>
|
---|
61 | <td valign="top">the package/module to check out.</td>
|
---|
62 | <td align="center" valign="top">No</td>
|
---|
63 | </tr>
|
---|
64 | <tr>
|
---|
65 | <td valign="top">port</td>
|
---|
66 | <td valign="top">Port used by CVS to communicate with the server.</td>
|
---|
67 | <td align="center" valign="top">No, default port 2401.</td>
|
---|
68 | </tr>
|
---|
69 | <tr>
|
---|
70 | <td valign="top">passfile</td>
|
---|
71 | <td valign="top">Password file to read passwords from.</td>
|
---|
72 | <td align="center" valign="top">No, default file ~/.cvspass.</td>
|
---|
73 | </tr>
|
---|
74 | <tr>
|
---|
75 | <td valign="top">failonerror</td>
|
---|
76 | <td valign="top">Stop the build process if the command exits with a
|
---|
77 | return code other than <code>0</code>. Defaults to false</td>
|
---|
78 | <td align="center" valign="top">No</td>
|
---|
79 | </tr>
|
---|
80 | <tr>
|
---|
81 | <td colspan="3">Specific attributes</td>
|
---|
82 | </tr>
|
---|
83 | <tr>
|
---|
84 | <td valign="top">clientversionproperty</td>
|
---|
85 | <td valign="top">Name of a property where the cvsclient version
|
---|
86 | should be stored</td>
|
---|
87 | <td align="center" valign="top">No</td>
|
---|
88 | </tr>
|
---|
89 | <tr>
|
---|
90 | <td valign="top">serverversionproperty</td>
|
---|
91 | <td valign="top">Name of a property where the cvs server version
|
---|
92 | should be stored</td>
|
---|
93 | <td align="center" valign="top">No</td>
|
---|
94 | </tr>
|
---|
95 | </table>
|
---|
96 | <h3>Examples</h3>
|
---|
97 | <pre> <cvsversion cvsRoot=":pserver:[email protected]:/home/cvspublic"
|
---|
98 | passfile="/home/myself/.cvspass"
|
---|
99 | serverversionproperty="apachecvsversion"
|
---|
100 | clientversionproperty="localcvsversion"
|
---|
101 | /></pre>
|
---|
102 | <p>finds out the cvs client and server versions and stores the versions in the
|
---|
103 | properties called apachecvsversion and localcvsversion</p>
|
---|
104 |
|
---|
105 |
|
---|
106 |
|
---|
107 | </body>
|
---|
108 | </html>
|
---|
109 |
|
---|