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.

tempfile.html 6.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Tempfile
  5. Task</title>
  6. </head>
  7. <body bgcolor="#ffffff" text="#000000" link="#525D76"
  8. alink="#525D76" vlink="#525D76">
  9. <table border="0" width="100%" cellspacing="4">
  10. <!-- PAGE HEADER -->
  11. <tr>
  12. <td>
  13. <table border="0" width="100%"><tr>
  14. <td valign="bottom">
  15. <font size="+3" face="arial,helvetica,sanserif"><strong>Tempfile
  16. Task</strong></font>
  17. <br><font face="arial,helvetica,sanserif">This task sets a property to the name of a temporary file.</font>
  18. </td>
  19. <td>
  20. <!-- PROJECT LOGO -->
  21. <a href="http://ant.apache.org/">
  22. <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0">
  23. </a>
  24. </td>
  25. </tr></table>
  26. </td>
  27. </tr>
  28. <!-- START RIGHT SIDE MAIN BODY -->
  29. <tr>
  30. <td valign="top" align="left">
  31. <!-- Applying task/long-description -->
  32. <!-- Start Description -->
  33. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  34. <tr><td>&nbsp;</td></tr>
  35. <tr><td bgcolor="#525D76">
  36. <font color="#ffffff" face="arial,helvetica.sanserif">
  37. <a name="description">
  38. <strong>Description</strong></a></font>
  39. </td></tr>
  40. <tr><td><blockquote>
  41. This task sets a property to the name of a temporary file.
  42. Unlike <code>java.io.File.createTempFile</code>,
  43. this task does not actually create the temporary file, but it does guarantee that the
  44. file did not exist when the task was executed.
  45. <p>Examples:
  46. <pre>&lt;tempfile property="temp.file"/&gt;</pre>
  47. create a temporary file
  48. <pre>&lt;tempfile property="temp.file" suffix=".xml"/&gt;</pre>
  49. create a temporary file with the <code>.xml</code> suffix
  50. <pre>&lt;tempfile property="temp.file" destDir="build"/&gt;</pre>
  51. create a temporary file in the <code>build</code> subdirectory
  52. </blockquote></td></tr>
  53. </table>
  54. <!-- End Description -->
  55. <!-- Ignore -->
  56. <!-- Start Attributes -->
  57. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  58. <tr><td>&nbsp;</td></tr>
  59. <tr><td bgcolor="#525D76">
  60. <font color="#ffffff" face="arial,helvetica.sanserif">
  61. <a name="attributes">
  62. <strong>Parameters</strong></a></font>
  63. </td></tr>
  64. <tr><td><blockquote>
  65. <table>
  66. <tr>
  67. <td bgcolor="#cccccc" valign="top" align="left">
  68. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  69. </td>
  70. <td bgcolor="#cccccc" valign="top" align="left">
  71. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  72. </td>
  73. <td bgcolor="#cccccc" valign="top" align="left">
  74. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  75. </td>
  76. <td bgcolor="#cccccc" valign="top" align="left">
  77. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
  78. </td>
  79. </tr>
  80. <!-- Attribute Group -->
  81. <!-- Attribute -->
  82. <tr>
  83. <td bgcolor="#eeeeee" valign="top" align="left">
  84. <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  85. </td>
  86. <td bgcolor="#eeeeee" valign="top" align="left">
  87. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the property you wish to assign the temporary file to.</font>
  88. </td>
  89. <td bgcolor="#eeeeee" valign="top" align="left">
  90. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  91. </td>
  92. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
  93. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Required</font>
  94. </td>
  95. </tr>
  96. <!-- Attribute Group -->
  97. <!-- Attribute -->
  98. <tr>
  99. <td bgcolor="#eeeeee" valign="top" align="left">
  100. <font color="#000000" size="-1" face="arial,helvetica,sanserif">destdir</font>
  101. </td>
  102. <td bgcolor="#eeeeee" valign="top" align="left">
  103. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the destination directory. If not set, the basedir directory is used instead.</font>
  104. </td>
  105. <td bgcolor="#eeeeee" valign="top" align="left">
  106. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  107. </td>
  108. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="3">
  109. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
  110. </td>
  111. </tr>
  112. <!-- Attribute -->
  113. <tr>
  114. <td bgcolor="#eeeeee" valign="top" align="left">
  115. <font color="#000000" size="-1" face="arial,helvetica,sanserif">prefix</font>
  116. </td>
  117. <td bgcolor="#eeeeee" valign="top" align="left">
  118. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the optional prefix string for the temp file.</font>
  119. </td>
  120. <td bgcolor="#eeeeee" valign="top" align="left">
  121. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  122. </td>
  123. </tr>
  124. <!-- Attribute -->
  125. <tr>
  126. <td bgcolor="#eeeeee" valign="top" align="left">
  127. <font color="#000000" size="-1" face="arial,helvetica,sanserif">suffix</font>
  128. </td>
  129. <td bgcolor="#eeeeee" valign="top" align="left">
  130. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the optional suffix string for the temp file.</font>
  131. </td>
  132. <td bgcolor="#eeeeee" valign="top" align="left">
  133. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  134. </td>
  135. </tr>
  136. </table>
  137. </blockquote></td></tr>
  138. </table>
  139. <!-- End Attributes -->
  140. <!-- Start Elements -->
  141. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  142. <tr><td>&nbsp;</td></tr>
  143. <tr><td bgcolor="#525D76">
  144. <font color="#ffffff" face="arial,helvetica.sanserif">
  145. <a name="elements">
  146. <strong>Parameters as nested elements</strong></a></font>
  147. </td></tr>
  148. <tr><td><blockquote>
  149. </blockquote></td></tr>
  150. </table>
  151. <!-- End Elements -->
  152. </td>
  153. </tr>
  154. <!-- END RIGHT SIDE MAIN BODY -->
  155. <!-- FOOTER SEPARATOR -->
  156. <tr>
  157. <td>
  158. <hr noshade="" size="1">
  159. </td>
  160. </tr>
  161. <!-- PAGE FOOTER -->
  162. <tr>
  163. <td>
  164. <div align="center"><font color="#525D76" size="-1"><em>
  165. Copyright &copy; 2000-2004, The Apache Software Foundation. All Rights Reserved.
  166. </em></font></div>
  167. </td>
  168. </tr>
  169. </table>
  170. </body>
  171. </html>