Tempfile Task This task sets a property to the name of a temporary file. |
Description
> 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. 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
Parameters
> Attribute | Description | Type
> destDir | destination directory. If null, the parent directory is used instead | File
> prefix | optional prefix string | String
> property | The property you wish to assign the temporary file to | String
> suffix | Suffix string for the temp file (optional) | String
Parameters as nested elements
Copyright © 2000-2002, Apache Software Foundation