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