You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

starteam.html 7.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Apache Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2>Starteam</h2>
  8. <h3>Description</h3>
  9. Checks out files from a StarTeam project.
  10. <p>
  11. The <i>includes</i> and <i>excludes</i> attributes function differently from
  12. other tasks in Ant. Multiple patterns must be separated by spaces, not
  13. commas. See the examples for more information.</p>
  14. <p>
  15. This program makes use of functions from the StarTeam API. As a result
  16. this task is only available to licensed users of StarTeam. You must have
  17. <CODE>starteam-sdk.jar</CODE> in your classpath to run this task.
  18. For more information about the StarTeam API and how to license it, see
  19. the <a href="http://www.starbase.com">StarBase</a> web site.</p>
  20. <h3>Parameters</h3>
  21. <table border="1" cellpadding="2" cellspacing="0">
  22. <tr>
  23. <td valign="top"><b>Attribute</b></td>
  24. <td valign="top"><b>Description</b></td>
  25. <td align="center" valign="top"><b>Required</b></td>
  26. </tr>
  27. <tr>
  28. <td valign="top">servername</td>
  29. <td valign="top">The name of the StarTeam server.</td>
  30. <td align="center" valign="top">yes</td>
  31. </tr>
  32. <tr>
  33. <td valign="top">serverport</td>
  34. <td valign="top">The port number of the StarTeam server.</td>
  35. <td align="center" valign="top">yes</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">projectname</td>
  39. <td valign="top">The name of the StarTeam project.</td>
  40. <td align="center" valign="top">yes</td>
  41. </tr>
  42. <tr>
  43. <td valign="top">viewname</td>
  44. <td valign="top">The name of the view in the StarTeam project.</td>
  45. <td align="center" valign="top">yes</td>
  46. </tr>
  47. <tr>
  48. <td valign="top">username</td>
  49. <td valign="top">The username of the account used to log in to the StarTeam server.</td>
  50. <td align="center" valign="top">yes</td>
  51. </tr>
  52. <tr>
  53. <td valign="top">password</td>
  54. <td valign="top">The password of the account used to log in to the StarTeam server.</td>
  55. <td align="center" valign="top">yes</td>
  56. </tr>
  57. <tr>
  58. <td valign="top">targetfolder</td>
  59. <td valign="top">The folder to which files are checked out. What this precisely means is determined by the <i>targetFolderAbsolute</i> param.</td>
  60. <td align="center" valign="top">yes</td>
  61. </tr>
  62. <tr>
  63. <td valign="top">targetFolderAbsolute</td>
  64. <td valign="top">Determines how <i>targetfolder</i> is interpreted, that is, whether the StarTeam "default folder" for the project is factored in (false) or whether <i>targetFolder</i> is a complete mapping to <i>foldername</i> (true).
  65. If "true", the target tree will be rooted at <i>targetfolder+"default folder"</i>. If false, the target tree will be rooted at <i>targetfolder</i>. Defaults to "false". </td>
  66. <td align="center" valign="top">no</td>
  67. </tr>
  68. <tr>
  69. <td valign="top">foldername</td>
  70. <td valign="top">The subfolder in the project from which to check out files.</td>
  71. <td align="center" valign="top">no</td>
  72. </tr>
  73. <tr>
  74. <td valign="top">force</td>
  75. <td valign="top">Overwrite existing folders if this is set to "true". Defaults to "false".</td>
  76. <td align="center" valign="top">no</td>
  77. </tr>
  78. <tr>
  79. <td valign="top">recursion</td>
  80. <td valign="top">Indicates if subfolders should be searched for files to check out. Defaults to "true".</td>
  81. <td align="center" valign="top">no</td>
  82. </tr>
  83. <tr>
  84. <td valign="top">verbose</td>
  85. <td valign="top">Provides progress information. Defaults to "false".</td>
  86. <td align="center" valign="top">no</td>
  87. </tr>
  88. <tr>
  89. <td valign="top">includes</td>
  90. <td valign="top">Only check out files that match at least one of the patterns in this list. Patterns must be separated by spaces. Patterns in <i>excludes</i> take precedence over patterns in <i>includes</i>.</td>
  91. <td align="center" valign="top">no</td>
  92. </tr>
  93. <tr>
  94. <td valign="top">excludes</td>
  95. <td valign="top">Do not check out files that match at least one of the patterns in this list. Patterns must be separated by spaces. Patterns in <i>excludes</i> take precedence over patterns in <i>includes</i>.</td>
  96. <td align="center" valign="top">no</td>
  97. </tr>
  98. </table>
  99. <h3>Examples</h3>
  100. <pre>
  101. &lt;starteam servername="STARTEAM"
  102. serverport="49201"
  103. projectname="AProject"
  104. viewname="AView"
  105. username="auser"
  106. password="secret"
  107. targetfolder="C:\dev\buildtest\co"
  108. /&gt;
  109. </pre>
  110. The minimum necessary to check out files out from a StarTeam server. This will
  111. check out all files in the <i>AView</i> view of the <i>AProject</i> project to
  112. <code>C:\dev\buildtest\co</code>.
  113. <pre>
  114. &lt;starteam servername="STARTEAM"
  115. serverport="49201"
  116. projectname="AProject"
  117. viewname="AView"
  118. username="auser"
  119. password="secret"
  120. targetfolder="C:\dev\buildtest\co"
  121. foldername="\Dev"
  122. excludes="*.bak *.old"
  123. force="true"
  124. /&gt;
  125. </pre>
  126. This will checkout all files from the <i>Dev</i> folder and below that do not
  127. end in <i>.bak</i> or <i>.old</i>. The force flag will cause any existing files to be
  128. overwritten by the version in StarTeam.
  129. <pre>
  130. &lt;starteam servername="STARTEAM"
  131. serverport="49201"
  132. projectname="AProject"
  133. viewname="AView"
  134. username="auser"
  135. password="secret"
  136. targetfolder="C:\dev\buildtest\co"
  137. includes="*.htm *.html"
  138. excludes="index.*"
  139. /&gt;
  140. </pre>
  141. This is an example of overlapping <i>includes</i> and <i>excludes</i> attributes. Because
  142. <i>excludes</i> takes precedence over <i>includes</i>, files named <code>index.html</code> will
  143. not be checked out by this command.
  144. <pre>
  145. &lt;starteam servername="STARTEAM"
  146. serverport="49201"
  147. projectname="AProject"
  148. foldername="src/java"
  149. viewname="AView"
  150. username="auser"
  151. password="secret"
  152. targetfolder="C:\dev\buildtest\co"
  153. targetfolderabsolute="true"
  154. /&gt;
  155. </pre>
  156. <br></br>
  157. <pre>
  158. &lt;starteam servername="STARTEAM"
  159. serverport="49201"
  160. projectname="AProject"
  161. foldername="src/java"
  162. viewname="AView"
  163. username="auser"
  164. password="secret"
  165. targetfolder="C:\dev\buildtest\co"
  166. targetfolderabsolute ="false"
  167. /&gt;
  168. </pre>
  169. <br></br>
  170. <pre>
  171. &lt;starteam servername="STARTEAM"
  172. serverport="49201"
  173. projectname="AProject"
  174. foldername="src/java"
  175. viewname="AView"
  176. username="auser"
  177. password="secret"
  178. targetfolder="C:\dev\buildtest\co\src\java"
  179. targetfolderabsolute="true"
  180. /&gt;
  181. </pre>
  182. In the preceding three examples, assuming that the AProject project has a default folder of
  183. "AProject", the first example will check the files located in starteam under src/java out to a tree rooted at C:\dev\buildtest\co,
  184. the second to a tree rooted at C:\dev\buildtest\co\AProject\src\java and the third to a tree rooted at C:\dev\buildtest\co\src\java.
  185. <hr>
  186. <p align="center">
  187. Copyright &copy; 2000,2001 Apache Software Foundation. All rights Reserved.
  188. </p>
  189. </body>
  190. </html>