2002-06-01 12:26:43 +00:00
< html >
< head >
< meta http-equiv = "Content-Language" content = "en-us" >
< title > Tempfile
Task< / title >
< / head >
< body bgcolor = "#ffffff" text = "#000000" link = "#525D76"
alink="#525D76" vlink="#525D76">
< table border = "0" width = "100%" cellspacing = "4" >
<!-- PAGE HEADER -->
< tr >
< td >
< table border = "0" width = "100%" > < tr >
< td valign = "bottom" >
< font size = "+3" face = "arial,helvetica,sanserif" > < strong > Tempfile
Task< / strong > < / font >
2003-12-12 19:25:13 +00:00
< br > < font face = "arial,helvetica,sanserif" > This task sets a property to the name of a temporary file.< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td >
<!-- PROJECT LOGO -->
2003-01-24 08:55:06 +00:00
< a href = "http://ant.apache.org/" >
2005-04-29 18:58:16 +00:00
< img src = "../../images/ant_logo_large.gif" align = "right" alt = "Apache Ant" border = "0" >
2002-06-01 12:26:43 +00:00
< / a >
< / td >
< / tr > < / table >
< / td >
< / tr >
<!-- START RIGHT SIDE MAIN BODY -->
< tr >
< td valign = "top" align = "left" >
<!-- Applying task/long - description -->
<!-- Start Description -->
< table border = "0" cellspacing = "0" cellpadding = "2" width = "100%" >
< tr > < td > < / td > < / tr >
< tr > < td bgcolor = "#525D76" >
< font color = "#ffffff" face = "arial,helvetica.sanserif" >
< a name = "description" >
< strong > Description< / strong > < / a > < / font >
< / td > < / tr >
< tr > < td > < blockquote >
2004-11-30 21:57:17 +00:00
This task sets a property to the name of a temporary file.
Unlike < code > java.io.File.createTempFile< / code > ,
this task 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 > < tempfile property="temp.file"/> < / pre >
create a temporary file
< pre > < tempfile property="temp.file" suffix=".xml"/> < / pre >
create a temporary file with the < code > .xml< / code > suffix
< pre > < tempfile property="temp.file" destDir="build"/> < / pre >
create a temporary file in the < code > build< / code > subdirectory
2002-06-01 12:26:43 +00:00
< / blockquote > < / td > < / tr >
< / table >
<!-- End Description -->
2003-12-12 19:25:13 +00:00
<!-- Ignore -->
2002-06-01 12:26:43 +00:00
<!-- Start Attributes -->
< table border = "0" cellspacing = "0" cellpadding = "2" width = "100%" >
< tr > < td > < / td > < / tr >
< tr > < td bgcolor = "#525D76" >
< font color = "#ffffff" face = "arial,helvetica.sanserif" >
< a name = "attributes" >
< strong > Parameters< / strong > < / a > < / font >
< / td > < / tr >
< tr > < td > < blockquote >
< table >
< tr >
< td bgcolor = "#cccccc" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > < b > Attribute< / b > < / font >
< / td >
< td bgcolor = "#cccccc" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > < b > Description< / b > < / font >
< / td >
< td bgcolor = "#cccccc" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > < b > Type< / b > < / font >
2003-12-12 19:25:13 +00:00
< / td >
< td bgcolor = "#cccccc" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > < b > Requirement< / b > < / font >
2002-06-01 12:26:43 +00:00
< / td >
< / tr >
2003-12-12 19:25:13 +00:00
<!-- Attribute Group -->
<!-- Attribute -->
2002-06-01 12:26:43 +00:00
< tr >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > property< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Sets the property you wish to assign the temporary file to.< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > String< / font >
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" rowspan = "1" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Required< / font >
2002-06-01 12:26:43 +00:00
< / td >
< / tr >
2003-12-12 19:25:13 +00:00
<!-- Attribute Group -->
<!-- Attribute -->
2002-06-01 12:26:43 +00:00
< tr >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > destdir< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Sets the destination directory. If not set, the basedir directory is used instead.< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > File< / font >
< / td >
2006-06-20 15:09:20 +00:00
< td bgcolor = "#eeeeee" valign = "top" align = "left" rowspan = "4" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Optional< / font >
2002-06-01 12:26:43 +00:00
< / td >
< / tr >
<!-- Attribute -->
< tr >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > prefix< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Sets the optional prefix string for the temp file.< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > String< / font >
< / td >
< / tr >
<!-- Attribute -->
< tr >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > suffix< / font >
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
2003-12-12 19:25:13 +00:00
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Sets the optional suffix string for the temp file.< / font >
2002-06-01 12:26:43 +00:00
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > String< / font >
< / td >
< / tr >
2006-06-20 15:09:20 +00:00
<!-- Attribute -->
< tr >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > deleteonexit< / font >
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > Whether the temp file will be marked for deletion on normal exit of the Java Virtual Machine (even though the file may never be created); default < em > false< / em > . < strong > Since Ant 1.7< / strong > < / font >
< / td >
< td bgcolor = "#eeeeee" valign = "top" align = "left" >
< font color = "#000000" size = "-1" face = "arial,helvetica,sanserif" > String< / font >
< / td >
< / tr >
2002-06-01 12:26:43 +00:00
2003-12-12 19:25:13 +00:00
2002-06-01 12:26:43 +00:00
< / table >
< / blockquote > < / td > < / tr >
< / table >
<!-- End Attributes -->
<!-- Start Elements -->
< table border = "0" cellspacing = "0" cellpadding = "2" width = "100%" >
< tr > < td > < / td > < / tr >
< tr > < td bgcolor = "#525D76" >
< font color = "#ffffff" face = "arial,helvetica.sanserif" >
< a name = "elements" >
< strong > Parameters as nested elements< / strong > < / a > < / font >
< / td > < / tr >
< tr > < td > < blockquote >
< / blockquote > < / td > < / tr >
< / table >
<!-- End Elements -->
< / td >
< / tr >
<!-- END RIGHT SIDE MAIN BODY -->
<!-- FOOTER SEPARATOR -->
< tr >
< td >
2005-04-29 18:58:16 +00:00
< hr noshade = "" size = "1" >
2002-06-01 12:26:43 +00:00
< / td >
< / tr >
<!-- PAGE FOOTER -->
< tr >
< td >
< div align = "center" > < font color = "#525D76" size = "-1" > < em >
2006-06-20 15:09:20 +00:00
Copyright © 2000-2004, 2006, The Apache Software Foundation. All Rights Reserved.
2002-06-01 12:26:43 +00:00
< / em > < / font > < / div >
< / td >
< / tr >
< / table >
< / body >
< / html >