Browse Source

1. Removing mention of JDK 1.1 which is no longer supported anyway.

2. More readable HTML source formatting - reduce merge conflicts, e.g.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277084 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 20 years ago
parent
commit
5741675eec
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      docs/manual/CoreTasks/tempfile.html

+ 20
- 1
docs/manual/CoreTasks/tempfile.html View File

@@ -46,7 +46,26 @@
</td></tr>

<tr><td><blockquote>
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

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>&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 <code>.xml</code> suffix

<pre>&lt;tempfile property="temp.file" destDir="build"/&gt;</pre>

create a temporary file in the <code>build</code> subdirectory

</blockquote></td></tr>

</table>


Loading…
Cancel
Save