Class TempFile

java.lang.Object
All Implemented Interfaces:
Cloneable

public class TempFile extends Task
This task sets a property to the name of a temporary file. Unlike File.createTempFile(java.lang.String, java.lang.String, java.io.File), this task does not (by default) actually create the temporary file, but it does guarantee that the file did not exist when the task was executed.

Examples

<tempfile property="temp.file" />
create a temporary file
<tempfile property="temp.file" suffix=".xml" />
create a temporary file with the .xml suffix.
<tempfile property="temp.file" destDir="build"/>
create a temp file in the build subdir
Since:
Ant 1.5