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 6.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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 patters must be seperated 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>usesDefaultFolder</i> param.</td>
  60. <td align="center" valign="top">yes</td>
  61. </tr>
  62. <tr>
  63. <td valign="top">usesDefaultFolder</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.
  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".
  66. The behavior of older versions was as if this were "true".</td>
  67. <td align="center" valign="top">no</td>
  68. </tr>
  69. <tr>
  70. <td valign="top">foldername</td>
  71. <td valign="top">The subfolder in the project from which to check out files.</td>
  72. <td align="center" valign="top">no</td>
  73. </tr>
  74. <tr>
  75. <td valign="top">force</td>
  76. <td valign="top">Overwrite existing folders if this is set to "true". Defaults to "false".</td>
  77. <td align="center" valign="top">no</td>
  78. </tr>
  79. <tr>
  80. <td valign="top">recursion</td>
  81. <td valign="top">Indicates if subfolders should be searched for files to check out. Defaults to "true".</td>
  82. <td align="center" valign="top">no</td>
  83. </tr>
  84. <tr>
  85. <td valign="top">verbose</td>
  86. <td valign="top">Provides progress information. Defaults to "false".</td>
  87. <td align="center" valign="top">no</td>
  88. </tr>
  89. <tr>
  90. <td valign="top">includes</td>
  91. <td valign="top">Only check out files that match at least one of the patterns in this list. Patterns must be seperated by spaces. Patterns in <i>excludes</i> take precedence over patterns in <i>includes</i>.</td>
  92. <td align="center" valign="top">no</td>
  93. </tr>
  94. <tr>
  95. <td valign="top">excludes</td>
  96. <td valign="top">Do not check out files that match at least one of the patterns in this list. Patterns must be seperated by spaces. Patterns in <i>excludes</i> take precedence over patterns in <i>includes</i>.</td>
  97. <td align="center" valign="top">no</td>
  98. </tr>
  99. </table>
  100. <h3>Examples</h3>
  101. <pre>
  102. &lt;starteam servername="STARTEAM"
  103. serverport="49201"
  104. projectname="AProject"
  105. viewname="AView"
  106. username="auser"
  107. password="secret"
  108. targetfolder="C:\dev\buildtest\co"
  109. /&gt;
  110. </pre>
  111. The minimum necessary to check out files out from a StarTeam server. This will
  112. check out all files in the <i>AView</i> view of the <i>AProject</i> project to
  113. <code>C:\dev\buildtest\co</code>.
  114. <pre>
  115. &lt;starteam servername="STARTEAM"
  116. serverport="49201"
  117. projectname="AProject"
  118. viewname="AView"
  119. username="auser"
  120. password="secret"
  121. targetfolder="C:\dev\buildtest\co"
  122. foldername="\Dev"
  123. excludes="*.bak *.old"
  124. force="true"
  125. /&gt;
  126. </pre>
  127. This will checkout all files from the <i>Dev</i> folder and below that do not
  128. end in <i>.bak</i> or <i>.old</i>. The force flag will cause any existing files to be
  129. overwritten by the version in StarTeam.
  130. <pre>
  131. &lt;starteam servername="STARTEAM"
  132. serverport="49201"
  133. projectname="AProject"
  134. viewname="AView"
  135. username="auser"
  136. password="secret"
  137. targetfolder="C:\dev\buildtest\co"
  138. includes="*.htm *.html"
  139. excludes="index.*"
  140. /&gt;
  141. </pre>
  142. This is an example of overlapping <i>includes</i> and <i>excludes</i> attributes. Because
  143. <i>excludes</i> takes precedence over <i>includes</i>, files named <code>index.html</code> will
  144. not be checked out by this command.
  145. <pre>
  146. &lt;starteam servername="STARTEAM"
  147. serverport="49201"
  148. projectname="AProject"
  149. viewname="AView"
  150. username="auser"
  151. password="secret"
  152. targetfolder="C:\dev\buildtest\co"
  153. usesDefaultFolder="false"
  154. /&gt;
  155. </pre>
  156. <br>
  157. <pre>
  158. &lt;starteam servername="STARTEAM"
  159. serverport="49201"
  160. projectname="AProject"
  161. viewname="AView"
  162. username="auser"
  163. password="secret"
  164. targetfolder="C:\dev\buildtest\co"
  165. usesDefaultFolder="true"
  166. /&gt;
  167. </pre>
  168. In the preceding two examples, assuming that the AProject project has a default folder of
  169. "AProject", the first example will check the files out to a tree rooted at C:\dev\buildtest\co
  170. and the second will check them out to a tree rooted at C:\dev\buildtest\co\AProject.
  171. <hr>
  172. <p align="center">
  173. Copyright &copy; 2000,2001 Apache Software Foundation. All rights Reserved.
  174. </p>
  175. </body>
  176. </html>