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.

vsshistory.html 3.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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><a name="vsshistory">VssHistory</a></h2>
  8. <h3>Description</h3>
  9. Task to perform HISTORY commands to Microsoft Visual Source Safe.
  10. <h3>Parameters</h3>
  11. <table border="1" cellpadding="2" cellspacing="0">
  12. <tr>
  13. <th>Attribute</th>
  14. <th>Values</th>
  15. <th>Required</th>
  16. </tr>
  17. <tr>
  18. <td>login</td>
  19. <td>username,password</td>
  20. <td>No</td>
  21. </tr>
  22. <tr>
  23. <td>vsspath</td>
  24. <td>SourceSafe path</td>
  25. <td>Yes</td>
  26. </tr>
  27. <tr>
  28. <td>ssdir</td>
  29. <td>directory where <code>ss.exe</code> resides. By default the task
  30. expects it to be in the PATH.</td>
  31. <td>No</td>
  32. </tr>
  33. <tr>
  34. <td>serverPath</td>
  35. <td>directory where <code>srssafe.ini</code> resides.</td>
  36. <td>No</td>
  37. </tr>
  38. <tr>
  39. <td>fromDate</td>
  40. <td>Start date for comparison</td>
  41. <td>See below</td>
  42. </tr>
  43. <tr>
  44. <td>toDate</td>
  45. <td>Start date for comparison</td>
  46. <td>See below</td>
  47. </tr>
  48. <tr>
  49. <td>dateFormat</td>
  50. <td>Format of dates in fromDate and toDate. Used when calculating dates with
  51. the numdays attribute. This string uses the formatting rules of SimpleDateFormat.
  52. Defaults to DateFormat.SHORT.</td>
  53. <td>No</td>
  54. </tr>
  55. <tr>
  56. <td>fromLabel</td>
  57. <td>Start label for comparison</td>
  58. <td>No</td>
  59. </tr>
  60. <tr>
  61. <td>toLabel</td>
  62. <td>Start label for comparison</td>
  63. <td>No</td>
  64. </tr>
  65. <tr>
  66. <td>numdays</td>
  67. <td>The number of days for comparison.</td>
  68. <td>See below</td>
  69. </tr>
  70. <tr>
  71. <td>output</td>
  72. <td>File to write the diff.</td>
  73. <td>No</td>
  74. </tr>
  75. <tr>
  76. <td>recursive</td>
  77. <td>true or false</td>
  78. <td>No</td>
  79. <tr>
  80. <tr>
  81. <td>style</td>
  82. <td>brief, codediff, default or nofile. The default is default.</td>
  83. <td>No</td>
  84. <tr>
  85. </table>
  86. <h4>Specifying the time-frame</h4>
  87. <p>There are different ways to specify what time-frame you wish to evaluate:</p>
  88. <ul>
  89. <li>Changes between two dates: Specify both <code>fromDate</code> and <code>toDate</code> </li>
  90. <li>Changes before a date: Specify <code>toDate</code></li>
  91. <li>Changes after a date: Specify <code>fromDate</code></li>
  92. <li>Changes X Days before a date: Specify <code>toDate</code> and (negative!) <code>numDays</code></li>
  93. <li>Changes X Days after a date: Specify <code>fromDate</code> and <code>numDays</code></li>
  94. </ul>
  95. <h3>Examples</h3>
  96. <blockquote>
  97. <pre>
  98. &lt;vsshistory vsspath=&quot;/myProject&quot; recursive=&quot;true&quot;
  99. fromLabel=&quot;Release1&quot;
  100. toLabel=&quot;Release2&quot;/&gt;
  101. </pre>
  102. </blockquote>
  103. <p>Shows all changes between &quot;Release1&quot; and &quot;Release2&quot;.</p>
  104. <blockquote>
  105. <pre>
  106. &lt;vsshistory vsspath=&quot;/myProject&quot; recursive=&quot;true&quot;
  107. fromDate=&quot;01.01.2001&quot;
  108. toDate=&quot;31.03.2001&quot;/&gt;
  109. </pre>
  110. </blockquote>
  111. <p>Shows all changes between January 1st 2001 and March 31st 2001 (in Germany, date must be specified according to your locale).</p>
  112. <blockquote>
  113. <pre>
  114. &lt;tstamp&gt;
  115. &lt;format property=&quot;to.tstamp&quot; pattern=&quot;M-d-yy;h:mma&quot; /&gt;
  116. &lt;/tstamp&gt;
  117. &lt;vsshistory vsspath=&quot;/myProject&quot; recursive=&quot;true&quot;
  118. numDays="-14"
  119. dateFormat=&quot;M-d-yy;h:mma&quot;
  120. toDate=&quot;${to.tstamp}&quot;/&gt;
  121. </pre>
  122. </blockquote>
  123. <p>Shows all changes in the 14 days before today.</p>
  124. <hr>
  125. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  126. Reserved.</p>
  127. </body>
  128. </html>