- Add "label" attribute on checkout per request from Greg Frank - checks out a specific view label.
- Add "recursive" attribute as in the deprecated <starteam> task.
- Add "forced" attribute as in the deprecated <starteam> task and avoid checking StarTeam statuses when true.
- Make sure all exceptions are caught on execution and rethrown as build exceptions.
- Fixed a bug (using the "forced" attribute) which were causing files to be incorrectly not checked out when a rootLocalFolder was specified because the StarTeam file statuses were being checked in relation to the default directory.
- Fixed a bug where files were deleted immediately after being checked out when a rootLocalFolder was specified because the task erroneously thought the file was not under starteam control.
- Code layout to fix weird indent issues.
PR: 5583
Submitted by: stevec@ignitesports.com (Steve Cohen)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270490 13f79535-47bb-0310-9956-ffa450edef68
@@ -48,7 +48,7 @@ other tasks in Ant. Inclusion/exclusion by folder is NOT supported.
<tr>
<td valign="top">URL</td>
<td valign="top">A string of the form <code>"servername:portnum/project/view</code>
<td valign="top">A string of the form <code>servername:portnum/project/view</code>
which enables user to set all of these elements in one string. </td>
<td align="center" valign="top">yes*</td>
</tr> <tr>
@@ -80,7 +80,9 @@ which enables user to set all of these elements in one string. </td>
</tr>
<tr>
<td valign="top">rootlocalfolder</td>
<td valign="top">The local folder which will be the root of the tree to which files are checked out. If this is not supplied, then the StarTeam "default folder" associated with <i>rootstarteamfolder</i> is used.</td>
<td valign="top">The local folder which will be the root of the tree to which files are checked out. If this is not supplied, then the StarTeam "default folder" associated with <i>rootstarteamfolder</i> is used.
Setting this may be thought of as setting a different mode of operation, since when set, it makes no sense to check StarTeam's status flags for each file, and they are not checked.
When not set, we use the default folder and so we do check the status flags.</td>
<td align="center" valign="top">no</td>
</tr>
@@ -104,6 +106,24 @@ which enables user to set all of these elements in one string. </td>
<td valign="top">Do not check out files that match at least one of the patterns in this list. Patterns must be separated by <i>commas</i>. Patterns in <i>excludes</i> take precedence over patterns in <i>includes</i>.</td>
<td align="center" valign="top">no</td>
</tr>
<tr>
<td valign="top">label</td>
<td valign="top">Check out files as of this label. The label must exist in starteam or an exception will be thrown. If not specified, the most recent version of each file will be checked out.</td>
<td align="center" valign="top">no</td>
</tr>
<tr>
<td valign="top">recursive</td>
<td valign="top">Indicates if subfolders should be searched for files to check out. Defaults to "true".</td>
<td align="center" valign="top">no</td>
</tr>
<tr>
<td valign="top">forced</td>
<td valign="top">If true, checkouts will occur regardless of the status
that StarTeam is maintaining for the file. If rootlocalfolder is set then
this should be set "true" as otherwise the checkout will be based on statuses
which do not relate to the target folder. Defaults to "false".</td>
<td align="center" valign="top">no</td>
</tr>
</table>
* Either the URL attribute or <b>all four</b> of the servername, serverport, projectname and viewname attributes must be defined. <br/>
@@ -118,6 +138,7 @@ which enables user to set all of these elements in one string. </td>
username="auser"
password="secret"
rootlocalfolder="C:\dev\buildtest\co"
force="true"
/>
</pre>
@@ -132,6 +153,7 @@ Or more simply:
username="auser"
password="secret"
rootlocalfolder="C:\dev\buildtest\co"
force="true"
/>
</pre>
<br></br>
@@ -142,11 +164,13 @@ Or more simply:
rootlocalfolder="C:\dev\buildtest\co"
rootstarteamfolder="\Dev"
excludes="*.bak *.old"
label="v2.6.001"
force="true"
/>
</pre>
This will checkout all files from the <i>Dev</i> folder and below that do not
end in <i>.bak</i> or <i>.old</i>.
end in <i>.bak</i> or <i>.old</i> with the label <i>v2.6.001</i>.
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.