ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/docs/manual/CoreTasks tempfile.html
Date Fri, 12 Dec 2003 19:30:37 GMT
peterreilly    2003/12/12 11:30:37

  Modified:    src/main/org/apache/tools/ant/taskdefs Tag: ANT_16_BRANCH
                        TempFile.java
               docs/manual/CoreTasks Tag: ANT_16_BRANCH tempfile.html
  Log:
  SYNC with HEAD
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.1   +5 -4      ant/src/main/org/apache/tools/ant/taskdefs/TempFile.java
  
  Index: TempFile.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/TempFile.java,v
  retrieving revision 1.7
  retrieving revision 1.7.2.1
  diff -u -r1.7 -r1.7.2.1
  --- TempFile.java	4 Jul 2003 14:04:54 -0000	1.7
  +++ TempFile.java	12 Dec 2003 19:30:37 -0000	1.7.2.1
  @@ -104,6 +104,7 @@
        * 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 @@
   
   
       /**
  -     * 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 @@
   
   
       /**
  -     * 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 @@
   
   
       /**
  -     * 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"
        */
  
  
  
  No                   revision
  No                   revision
  1.3.2.2   +30 -36    ant/docs/manual/CoreTasks/tempfile.html
  
  Index: tempfile.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/tempfile.html,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- tempfile.html	9 Oct 2003 21:01:06 -0000	1.3.2.1
  +++ tempfile.html	12 Dec 2003 19:30:37 -0000	1.3.2.2
  @@ -19,7 +19,7 @@
             <td valign="bottom">
               <font size="+3" face="arial,helvetica,sanserif"><strong>Tempfile
    Task</strong></font>
  -            <br><font face="arial,helvetica,sanserif">This task sets a property
to  the name of a temporary file.</font>
  +            <br><font face="arial,helvetica,sanserif">This task sets a property
to the name of a temporary file.</font>
             </td>
             <td>
               <!-- PROJECT LOGO -->
  @@ -47,34 +47,24 @@
         </td></tr>
   
         <tr><td><blockquote>
  -        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
  +        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
         </blockquote></td></tr>
   
       </table>
       <!-- End Description -->
   
  + <!-- Ignore -->
  +
  +
  +
       <!-- Start Attributes -->
       <table border="0" cellspacing="0" cellpadding="2" width="100%">
         <tr><td>&nbsp;</td></tr>
  -
         <tr><td bgcolor="#525D76">
           <font color="#ffffff" face="arial,helvetica.sanserif">
             <a name="attributes">
             <strong>Parameters</strong></a></font>
         </td></tr>
  -
         <tr><td><blockquote>
           <table>
             <tr>
  @@ -87,45 +77,50 @@
           <td bgcolor="#cccccc" valign="top" align="left">
             <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
           </td>
  +        <td bgcolor="#cccccc" valign="top" align="left">
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
  +        </td>
             </tr>
  -    <!-- Attribute -->
  +    <!-- Attribute Group -->    
  +        <!-- Attribute -->
       <tr>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">destDir</font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -          destination directory. If null, 
  -the parent directory is used instead
  -        </font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the
property you wish to assign the temporary file to.</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  +        </td>
  +        <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">Required</font>
           </td>
       </tr>
  -    <!-- Attribute -->
  +
  +    <!-- Attribute Group -->    
  +        <!-- Attribute -->
       <tr>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">prefix</font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">destdir</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -          optional prefix string
  -        </font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the
destination directory. If not set, the basedir directory is used instead.</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  +        </td>
  +        <td bgcolor="#eeeeee" valign="top" align="left" rowspan="3">
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
           </td>
       </tr>
       <!-- Attribute -->
       <tr>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">prefix</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -          The property you wish to assign the temporary file to
  -        </font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the
optional prefix string for the temp file.</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
             <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  @@ -137,14 +132,13 @@
             <font color="#000000" size="-1" face="arial,helvetica,sanserif">suffix</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
  -          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -          Suffix string for the temp file (optional)
  -        </font>
  +          <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the
optional suffix string for the temp file.</font>
           </td>
           <td bgcolor="#eeeeee" valign="top" align="left">
             <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
           </td>
       </tr>
  +
   
           </table>
         </blockquote></td></tr>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message