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 `java.io.File.createTempFile`, this task 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 temporary file in the `build` subdirectory
Parameters
> Attribute | Description | Type | Requirement
> property | Sets the property you wish to assign the temporary file to. | String | Required
> destdir | Sets the destination directory. If not set, the basedir directory is used instead. | File | Optional
> prefix | Sets the optional prefix string for the temp file. | String
> suffix | Sets the optional suffix string for the temp file. | String
Parameters as nested elements
Copyright © 2000-2004, The Apache Software Foundation. All Rights Reserved.