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.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 the Java1.2 method to create a temporary file, this task
  43. does work on Java1.1. Also, it does not actually create the
  44. temporary file, but it does guarantee that the file did not
  45. exist when the task was executed.
  46. <p>
  47. Examples
  48. <pre>&lt;tempfile property="temp.file" /&gt;</pre>
  49. create a temporary file
  50. <pre>&lt;tempfile property="temp.file" suffix=".xml" /&gt;</pre>
  51. create a temporary file with the .xml suffix.
  52. <pre>&lt;tempfile property="temp.file" destDir="build"/&gt;</pre>
  53. create a temp file in the build subdir
  54. </blockquote></td></tr>
  55. </table>
  56. <!-- End Description -->
  57. <!-- Start Attributes -->
  58. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  59. <tr><td>&nbsp;</td></tr>
  60. <tr><td bgcolor="#525D76">
  61. <font color="#ffffff" face="arial,helvetica.sanserif">
  62. <a name="attributes">
  63. <strong>Parameters</strong></a></font>
  64. </td></tr>
  65. <tr><td><blockquote>
  66. <table>
  67. <tr>
  68. <td bgcolor="#cccccc" valign="top" align="left">
  69. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  70. </td>
  71. <td bgcolor="#cccccc" valign="top" align="left">
  72. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  73. </td>
  74. <td bgcolor="#cccccc" valign="top" align="left">
  75. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  76. </td>
  77. </tr>
  78. <!-- Attribute -->
  79. <tr>
  80. <td bgcolor="#eeeeee" valign="top" align="left">
  81. <font color="#000000" size="-1" face="arial,helvetica,sanserif">destDir</font>
  82. </td>
  83. <td bgcolor="#eeeeee" valign="top" align="left">
  84. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  85. destination directory. If null,
  86. the parent directory is used instead
  87. </font>
  88. </td>
  89. <td bgcolor="#eeeeee" valign="top" align="left">
  90. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  91. </td>
  92. </tr>
  93. <!-- Attribute -->
  94. <tr>
  95. <td bgcolor="#eeeeee" valign="top" align="left">
  96. <font color="#000000" size="-1" face="arial,helvetica,sanserif">prefix</font>
  97. </td>
  98. <td bgcolor="#eeeeee" valign="top" align="left">
  99. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  100. optional prefix string
  101. </font>
  102. </td>
  103. <td bgcolor="#eeeeee" valign="top" align="left">
  104. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  105. </td>
  106. </tr>
  107. <!-- Attribute -->
  108. <tr>
  109. <td bgcolor="#eeeeee" valign="top" align="left">
  110. <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  111. </td>
  112. <td bgcolor="#eeeeee" valign="top" align="left">
  113. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  114. The property you wish to assign the temporary file to
  115. </font>
  116. </td>
  117. <td bgcolor="#eeeeee" valign="top" align="left">
  118. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  119. </td>
  120. </tr>
  121. <!-- Attribute -->
  122. <tr>
  123. <td bgcolor="#eeeeee" valign="top" align="left">
  124. <font color="#000000" size="-1" face="arial,helvetica,sanserif">suffix</font>
  125. </td>
  126. <td bgcolor="#eeeeee" valign="top" align="left">
  127. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  128. Suffix string for the temp file (optional)
  129. </font>
  130. </td>
  131. <td bgcolor="#eeeeee" valign="top" align="left">
  132. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  133. </td>
  134. </tr>
  135. </table>
  136. </blockquote></td></tr>
  137. </table>
  138. <!-- End Attributes -->
  139. <!-- Start Elements -->
  140. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  141. <tr><td>&nbsp;</td></tr>
  142. <tr><td bgcolor="#525D76">
  143. <font color="#ffffff" face="arial,helvetica.sanserif">
  144. <a name="elements">
  145. <strong>Parameters as nested elements</strong></a></font>
  146. </td></tr>
  147. <tr><td><blockquote>
  148. </blockquote></td></tr>
  149. </table>
  150. <!-- End Elements -->
  151. </td>
  152. </tr>
  153. <!-- END RIGHT SIDE MAIN BODY -->
  154. <!-- FOOTER SEPARATOR -->
  155. <tr>
  156. <td>
  157. <hr noshade="" size="1"/>
  158. </td>
  159. </tr>
  160. <!-- PAGE FOOTER -->
  161. <tr>
  162. <td>
  163. <div align="center"><font color="#525D76" size="-1"><em>
  164. Copyright &#169; 2000-2003, Apache Software Foundation
  165. </em></font></div>
  166. </td>
  167. </tr>
  168. </table>
  169. </body>
  170. </html>