org.apache.tools.ant.taskdefs
public class TempFile extends Task
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
UNKNOWN:
Method Summary | |
---|---|
void | execute()
Creates the temporary file.
|
void | setDestDir(File destDir)
Sets the destination directory. |
void | setPrefix(String prefix)
Sets the optional prefix string for the temp file.
|
void | setProperty(String property)
Sets the property you wish to assign the temporary file to.
|
void | setSuffix(String suffix)
Sets the optional suffix string for the temp file.
|
Throws: BuildException if something goes wrong with the build
Parameters: destDir The new destDir value
Parameters: prefix string to prepend to generated string
Parameters: property The property to set
UNKNOWN: group="required"
Parameters: suffix suffix including any "." , e.g ".xml"