peterreilly    2004/12/10 09:11:41

  Modified:    src/main/org/apache/tools/ant/taskdefs Tag: ANT_16_BRANCH
                        UpToDate.java
               docs/manual/CoreTasks Tag: ANT_16_BRANCH uptodate.html
  Log:
  sync: updatetodate filenamemapper type
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.32.2.5  +9 -0      ant/src/main/org/apache/tools/ant/taskdefs/UpToDate.java
  
  Index: UpToDate.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/UpToDate.java,v
  retrieving revision 1.32.2.4
  retrieving revision 1.32.2.5
  diff -u -r1.32.2.4 -r1.32.2.5
  --- UpToDate.java     9 Mar 2004 17:01:34 -0000       1.32.2.4
  +++ UpToDate.java     10 Dec 2004 17:11:41 -0000      1.32.2.5
  @@ -117,6 +117,15 @@
       }
   
       /**
  +     * A nested filenamemapper
  +     * @param fileNameMapper the mapper to add
  +     * @since Ant 1.6.3
  +     */
  +    public void add(FileNameMapper fileNameMapper) {
  +        createMapper().add(fileNameMapper);
  +    }
  +
  +    /**
        * Evaluate (all) target and source file(s) to
        * see if the target(s) is/are up-to-date.
        */
  
  
  
  No                   revision
  No                   revision
  1.11.2.5  +4 -0      ant/docs/manual/CoreTasks/uptodate.html
  
  Index: uptodate.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/uptodate.html,v
  retrieving revision 1.11.2.4
  retrieving revision 1.11.2.5
  diff -u -r1.11.2.4 -r1.11.2.5
  --- uptodate.html     19 Nov 2004 09:10:00 -0000      1.11.2.4
  +++ uptodate.html     10 Dec 2004 17:11:41 -0000      1.11.2.5
  @@ -75,6 +75,10 @@
         The mapper "to" attribute is relative to the target file, or to
         the "dir" attribute of the nested srcfiles element.
      </p>
  +  <p>
  +    <em>Since Ant 1.6.3</em>,
  +    one can use a filenamemapper type in place of the mapper element.
  +  </p>
   <h3>Examples</h3>
   <pre>  &lt;uptodate property=&quot;xmlBuild.notRequired&quot; 
targetfile=&quot;${deploy}\xmlClasses.jar&quot; &gt;
       &lt;srcfiles dir= &quot;${src}/xml&quot; 
includes=&quot;**/*.dtd&quot;/&gt;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to