source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/docs/manual/CoreTasks/tempfile.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

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