diff --git a/docs/manual/CoreTasks/tempfile.html b/docs/manual/CoreTasks/tempfile.html
index 78ce88cd8..0b2e43554 100644
--- a/docs/manual/CoreTasks/tempfile.html
+++ b/docs/manual/CoreTasks/tempfile.html
@@ -18,7 +18,7 @@
Tempfile
Task
- This task sets a property to the name of a temporary file.
+ This task sets a property to the name of a temporary file.
|
@@ -46,34 +46,24 @@
|
- 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
+ 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
|
-
@@ -85,46 +75,51 @@
Type
+ |
+
+ Requirement
|
-
+
+
- destDir
+ property
|
-
- destination directory. If null,
-the parent directory is used instead
-
+ Sets the property you wish to assign the temporary file to.
|
- File
+ String
+ |
+
+ Required
|
-
+
+
+
- prefix
+ destdir
|
-
- optional prefix string
-
+ Sets the destination directory. If not set, the basedir directory is used instead.
|
- String
+ File
+ |
+
+ Optional
|
- property
+ prefix
|
-
- The property you wish to assign the temporary file to
-
+ Sets the optional prefix string for the temp file.
|
String
@@ -136,15 +131,14 @@ the parent directory is used instead
suffix
|
-
- Suffix string for the temp file (optional)
-
+ Sets the optional suffix string for the temp file.
|
String
|
+
|
diff --git a/src/main/org/apache/tools/ant/taskdefs/TempFile.java b/src/main/org/apache/tools/ant/taskdefs/TempFile.java
index 1ee5a5f2c..a457f572e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/TempFile.java
+++ b/src/main/org/apache/tools/ant/taskdefs/TempFile.java
@@ -104,6 +104,7 @@ public class TempFile extends Task {
* Sets the property you wish to assign the temporary file to.
*
* @param property The property to set
+ * @ant.attribute group="required"
*/
public void setProperty(String property) {
this.property = property;
@@ -111,8 +112,8 @@ public class TempFile extends Task {
/**
- * Sets the destination directory. If null,
- * the parent directory is used instead.
+ * Sets the destination directory. If not set,
+ * the basedir directory is used instead.
*
* @param destDir The new destDir value
*/
@@ -122,7 +123,7 @@ public class TempFile extends Task {
/**
- * Sets the optional prefix string.
+ * Sets the optional prefix string for the temp file.
*
* @param prefix string to prepend to generated string
*/
@@ -132,7 +133,7 @@ public class TempFile extends Task {
/**
- * Sets the suffix string for the temp file (optional)
+ * Sets the optional suffix string for the temp file.
*
* @param suffix suffix including any "." , e.g ".xml"
*/