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 5.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>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.
  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.
  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.</td>
  60. <td align="center" valign="top">yes</td>
  61. </tr>
  62. <tr>
  63. <td valign="top">foldername</td>
  64. <td valign="top">The subfolder in the project from which to check out files.</td>
  65. <td align="center" valign="top">no</td>
  66. </tr>
  67. <tr>
  68. <td valign="top">force</td>
  69. <td valign="top">Overwrite existing folders if this is set to "true". Defaults to "false".</td>
  70. <td align="center" valign="top">no</td>
  71. </tr>
  72. <tr>
  73. <td valign="top">recursion</td>
  74. <td valign="top">Indicates if subfolders should be searched for files to check out. Defaults to "true".</td>
  75. <td align="center" valign="top">no</td>
  76. </tr>
  77. <tr>
  78. <td valign="top">verbose</td>
  79. <td valign="top">Provides progress information. Defaults to "false".</td>
  80. <td align="center" valign="top">no</td>
  81. </tr>
  82. <tr>
  83. <td valign="top">includes</td>
  84. <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>
  85. <td align="center" valign="top">no</td>
  86. </tr>
  87. <tr>
  88. <td valign="top">excludes</td>
  89. <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>
  90. <td align="center" valign="top">no</td>
  91. </tr>
  92. </table>
  93. <h3>Examples</h3>
  94. <pre>
  95. &lt;starteam servername="STARTEAM"
  96. serverport="49201"
  97. projectname="AProject"
  98. viewname="AView"
  99. username="auser"
  100. password="secret"
  101. targetfolder="C:\dev\buildtest\co"
  102. /&gt;
  103. </pre>
  104. The minimum necessary to check out files out from a StarTeam server. This will
  105. check out all files in the <i>AView</i> view of the <i>AProject</i> project to
  106. <code>C:\dev\buildtest\co</code>.
  107. <pre>
  108. &lt;starteam servername="STARTEAM"
  109. serverport="49201"
  110. projectname="AProject"
  111. viewname="AView"
  112. username="auser"
  113. password="secret"
  114. targetfolder="C:\dev\buildtest\co"
  115. foldername="\Dev"
  116. excludes="*.bak *.old"
  117. force="true"
  118. /&gt;
  119. </pre>
  120. This will checkout all files from the <i>Dev</i> folder and below that do not
  121. end in <i>.bak</i> or <i>.old</i>. The force flag will cause any existing files to be
  122. overwritten by the version in StarTeam.
  123. <pre>
  124. &lt;starteam servername="STARTEAM"
  125. serverport="49201"
  126. projectname="AProject"
  127. viewname="AView"
  128. username="auser"
  129. password="secret"
  130. targetfolder="C:\dev\buildtest\co"
  131. includes="*.htm *.html"
  132. excludes="index.*"
  133. /&gt;
  134. </pre>
  135. This is an example of overlapping <i>includes</i> and <i>excludes</i> attributes. Because
  136. <i>excludes</i> takes precedence over <i>includes</i>, files named <code>index.html</code> will
  137. not be checked out by this command.
  138. <p>
  139. <hr>
  140. <p align="center">
  141. Copyright &copy; 2000,2001 Apache Software Foundation. All rights Reserved.
  142. </p>
  143. </body>
  144. </html>