You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2002/05/03 07:09:40 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs TempFile.java

stevel      02/05/02 22:09:40

  Modified:    src/main/org/apache/tools/ant/taskdefs Tag: ANT_15_BRANCH
                        TempFile.java
  Log:
  javadoc comment, which xdocs could turn into a man page if it was working today
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +14 -3     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/TempFile.java
  
  Index: TempFile.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/TempFile.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- TempFile.java	27 Apr 2002 05:05:49 -0000	1.1
  +++ TempFile.java	3 May 2002 05:09:40 -0000	1.1.2.1
  @@ -63,8 +63,19 @@
   import org.apache.tools.ant.util.FileUtils;
   
   /**
  - *  This task fills a proprerty with a temporary file
  - *
  + *  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. 
  + * <p>  
  + * Examples
  + * <pre>&lt;tempfile property="temp.file" /&gt;</pre>
  + * create a temporary file
  + * <pre>&lt;tempfile property="temp.file" suffix=".xml" /&gt;</pre>
  + * create a temporary file with the .xml suffix.
  + * <pre>&lt;tempfile property="temp.file" destDir="build"/&gt;</pre>
  + * create a temp file in the build subdir
    *@author      steve loughran
    *@since       Ant 1.5
    *@ant.task
  @@ -94,7 +105,7 @@
   
   
       /**
  -     *  Sets the property attribute of the TempFile object
  +     *  The property you wish to assign the temporary file to
        *
        *@param  property  The property to set
        */
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>