Methods Summary |
---|
public void | execute()Creates the temporary file.
if (property == null || property.length() == 0) {
throw new BuildException("no property specified");
}
if (destDir == null) {
destDir = getProject().resolveFile(".");
}
File tfile = FILE_UTILS.createTempFile(
prefix, suffix, destDir, deleteOnExit);
getProject().setNewProperty(property, tfile.toString());
|
public boolean | isDeleteOnExit()Learn whether deleteOnExit is set for this tempfile task.
return deleteOnExit;
|
public void | setDeleteOnExit(boolean deleteOnExit)Set whether the tempfile created by this task should be set
for deletion on normal VM exit.
this.deleteOnExit = deleteOnExit;
|
public void | setDestDir(java.io.File destDir)Sets the destination directory. If not set,
the basedir directory is used instead.
this.destDir = destDir;
|
public void | setPrefix(java.lang.String prefix)Sets the optional prefix string for the temp file.
this.prefix = prefix;
|
public void | setProperty(java.lang.String property)Sets the property you wish to assign the temporary file to.
this.property = property;
|
public void | setSuffix(java.lang.String suffix)Sets the optional suffix string for the temp file.
this.suffix = suffix;
|