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.
|
boolean | isCreateFile()
Learn whether createFile flag is set for this tempfile task. |
boolean | isDeleteOnExit()
Learn whether deleteOnExit is set for this tempfile task. |
void | setCreateFile(boolean createFile)
If set the file is actually created, if not just a name is created. |
void | setDeleteOnExit(boolean deleteOnExit)
Set whether the tempfile created by this task should be set
for deletion on normal VM exit. |
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
Returns: the createFile flag.
Returns: boolean deleteOnExit flag.
Parameters: createFile boolean flag.
Parameters: deleteOnExit boolean flag.
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"