diff options
Diffstat (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/tempfile.html')
-rw-r--r-- | framework/src/ant/apache-ant-1.9.6/manual/Tasks/tempfile.html | 229 |
1 files changed, 229 insertions, 0 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/tempfile.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/tempfile.html new file mode 100644 index 00000000..1be00d07 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/tempfile.html @@ -0,0 +1,229 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<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> + <br><font face="arial,helvetica,sanserif">This task sets a property to the name of a temporary file.</font> + </td> + <td> + <!-- PROJECT LOGO --> + <a href="http://ant.apache.org/"> + <img src="../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"> + </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> + + 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 + + </blockquote></td></tr> + + </table> + <!-- End Description --> + + <!-- Ignore --> + + + + <!-- 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> + </td> + <td bgcolor="#cccccc" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font> + </td> + </tr> + <!-- Attribute Group --> + <!-- Attribute --> + <tr> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the property you wish to assign the temporary file to.</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <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> + </td> + </tr> + + <!-- Attribute Group --> + <!-- Attribute --> + <tr> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">destdir</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the destination directory. If not set, the basedir directory is used instead.</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left" rowspan="5"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font> + </td> + </tr> + <!-- Attribute --> + <tr> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">prefix</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the optional prefix string for the temp file.</font> + </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"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the optional suffix string for the temp file.</font> + </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">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 Apache Ant 1.7</strong></font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font> + </td> + </tr> + <!-- Attribute --> + <tr> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">createfile</font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">Whether the temp file should be created by this task; default <em>false</em>.<strong>Since Ant 1.8</strong></font> + </td> + <td bgcolor="#eeeeee" valign="top" align="left"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font> + </td> + </tr> + + </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 --> + +</table> + +</body> +</html> |