cvs commit: ant/docs/manual/CoreTasks uptodate.html

2005-02-24 Thread mbenson
mbenson 2005/02/24 09:54:21

  Modified:docs/manual/CoreTasks uptodate.html
  Log:
  Fixed erroneous statements in documentation.
  PR: 33626
  
  Revision  ChangesPath
  1.16  +4 -4  ant/docs/manual/CoreTasks/uptodate.html
  
  Index: uptodate.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/uptodate.html,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- uptodate.html 10 Dec 2004 17:10:07 -  1.15
  +++ uptodate.html 24 Feb 2005 17:54:21 -  1.16
  @@ -17,8 +17,8 @@
   whereas multiple target files are specified using a nested
   a href=../CoreTypes/mapper.htmlcodelt;mappergt;/code/a 
element./p
   pBy default, the value of the property is set to codetrue/code if
  -the timestamp of the target file(s) is more recent than the timestamp of
  -the corresponding source file(s). You can set the value to something other
  +the timestamp of the source file(s) is not more recent than the timestamp of
  +the corresponding target file(s). You can set the value to something other
   than the default by specifying the codevalue/code attribute./p
   pIf a codelt;srcfilesgt;/code element is used, without also 
specifying
   a codelt;mappergt;/code element, the default behavior is to use a
  @@ -115,7 +115,7 @@
   targetfile=quot;${build}/.flagfilequot;/gt;
   /pre
   psets the property codeisUpToDate/code to codetrue/code
  -if code/usr/local/bin/testit/code is newer than
  +if code/usr/local/bin/testit/code is not newer than
   code${build}/.flagfile/code./p
   /p
 p
  @@ -141,7 +141,7 @@
 /pre
   
   hr
  -p align=centerCopyright copy; 2000-2004 The Apache Software Foundation.
  +p align=centerCopyright copy; 2000-2005 The Apache Software Foundation.
   All rights Reserved./p
   
   /body
  
  
  

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



cvs commit: ant/docs/manual/CoreTasks uptodate.html

2005-02-24 Thread mbenson
mbenson 2005/02/24 09:55:57

  Modified:docs/manual/CoreTasks Tag: ANT_16_BRANCH uptodate.html
  Log:
  Merge
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.11.2.6  +4 -4  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.5
  retrieving revision 1.11.2.6
  diff -u -r1.11.2.5 -r1.11.2.6
  --- uptodate.html 10 Dec 2004 17:11:41 -  1.11.2.5
  +++ uptodate.html 24 Feb 2005 17:55:57 -  1.11.2.6
  @@ -18,8 +18,8 @@
   whereas multiple target files are specified using a nested
   a href=../CoreTypes/mapper.htmlcodelt;mappergt;/code/a 
element./p
   pBy default, the value of the property is set to codetrue/code if
  -the timestamp of the target file(s) is more recent than the timestamp of
  -the corresponding source file(s). You can set the value to something other
  +the timestamp of the source file(s) is not more recent than the timestamp of
  +the corresponding target file(s). You can set the value to something other
   than the default by specifying the codevalue/code attribute./p
   pIf a codelt;srcfilesgt;/code element is used, without also 
specifying
   a codelt;mappergt;/code element, the default behavior is to use a
  @@ -116,7 +116,7 @@
   targetfile=quot;${build}/.flagfilequot;/gt;
   /pre
   psets the property codeisUpToDate/code to codetrue/code
  -if code/usr/local/bin/testit/code is newer than
  +if code/usr/local/bin/testit/code is not newer than
   code${build}/.flagfile/code./p
   /p
 p
  @@ -142,7 +142,7 @@
 /pre
   
   hr
  -p align=centerCopyright copy; 2000-2004 The Apache Software Foundation.
  +p align=centerCopyright copy; 2000-2005 The Apache Software Foundation.
   All rights Reserved./p
   
   /body
  
  
  

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



cvs commit: ant/docs/manual/CoreTasks uptodate.html

2004-12-10 Thread peterreilly
peterreilly2004/12/10 09:10:08

  Modified:docs/manual/CoreTasks uptodate.html
  Log:
  doc for use of filenamemaper in uptodate
  
  Revision  ChangesPath
  1.15  +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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- uptodate.html 19 Nov 2004 09:07:09 -  1.14
  +++ uptodate.html 10 Dec 2004 17:10:07 -  1.15
  @@ -74,6 +74,10 @@
 The mapper to attribute is relative to the target file, or to
 the dir attribute of the nested srcfiles element.
  /p
  +  p
  +emSince Ant 1.6.3/em,
  +one can use a filenamemapper type in place of the mapper element.
  +  /p
   h3Examples/h3
   pre  lt;uptodate property=quot;xmlBuild.notRequiredquot; 
targetfile=quot;${deploy}\xmlClasses.jarquot; gt;
   lt;srcfiles dir= quot;${src}/xmlquot; 
includes=quot;**/*.dtdquot;/gt;
  
  
  

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



cvs commit: ant/docs/manual/CoreTasks uptodate.html

2004-12-10 Thread peterreilly
peterreilly2004/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  ChangesPath
  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 -   1.32.2.4
  +++ UpToDate.java 10 Dec 2004 17:11:41 -  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 -  1.11.2.4
  +++ uptodate.html 10 Dec 2004 17:11:41 -  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
  +emSince Ant 1.6.3/em,
  +one can use a filenamemapper type in place of the mapper element.
  +  /p
   h3Examples/h3
   pre  lt;uptodate property=quot;xmlBuild.notRequiredquot; 
targetfile=quot;${deploy}\xmlClasses.jarquot; gt;
   lt;srcfiles dir= quot;${src}/xmlquot; 
includes=quot;**/*.dtdquot;/gt;
  
  
  

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



cvs commit: ant/docs/manual/CoreTasks uptodate.html

2003-11-24 Thread peterreilly
peterreilly2003/11/24 09:20:19

  Modified:docs/manual/CoreTasks uptodate.html
  Log:
  Clarify the to attribute of the mapper nested element of uptodate
  PR: 24249
  Obtained from: [EMAIL PROTECTED]
  
  Revision  ChangesPath
  1.12  +26 -2 ant/docs/manual/CoreTasks/uptodate.html
  
  Index: uptodate.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/uptodate.html,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- uptodate.html 1 Jun 2002 12:26:33 -   1.11
  +++ uptodate.html 24 Nov 2003 17:20:19 -  1.12
  @@ -70,7 +70,10 @@
   pThe nested codelt;mappergt;/code element allows you to specify
   a set of target files to check for being up-to-date with respect to a
   set of source files./p
  -
  +   p
  +  The mapper to attribute is relative to the target file, or to
  +  the dir attribute of the nested srcfiles element.
  +   /p
   h3Examples/h3
   pre  lt;uptodate property=quot;xmlBuild.notRequiredquot; 
targetfile=quot;${deploy}\xmlClasses.jarquot; gt;
   lt;srcfiles dir= quot;${src}/xmlquot; 
includes=quot;**/*.dtdquot;/gt;
  @@ -111,9 +114,30 @@
   if code/usr/local/bin/testit/code is newer than
   code${build}/.flagfile/code./p
   /p
  +  p
  +The following shows usage of a relative mapper.
  +  /p
  +  pre
  +lt;uptodate property=checkUptodate.uptodategt;
  +  lt;srcfiles dir=src includes=* /gt;
  +  lt;mapper type=merge to=../dest/output.done/gt;
  +lt;/uptodategt;
  +lt;echo message=checkUptodate result: ${checkUptodate.uptodate} /gt;
  +  /pre
  +  p
  +The previous example can be a bit confusing, so it may be better to
  +use absolute paths:
  +  /p
  +  pre
  +lt;property name=dest.dir location=dest/gt;
  +lt;uptodate property=checkUptodate.uptodategt;
  +  lt;srcfiles dir=src includes=* /gt;
  +  lt;mapper type=merge to=${dest.dir}/output.done/gt;
  +lt;/uptodategt;
  +  /pre
   
   hr
  -p align=centerCopyright copy; 2000-2002 Apache Software Foundation.
  +p align=centerCopyright copy; 2000-2003 Apache Software Foundation.
   All rights Reserved./p
   
   /body
  
  
  

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



cvs commit: ant/docs/manual/CoreTasks uptodate.html

2003-11-24 Thread peterreilly
peterreilly2003/11/24 09:21:30

  Modified:docs/manual/CoreTasks Tag: ANT_16_BRANCH uptodate.html
  Log:
  sync with head
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.11.2.2  +26 -2 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.1
  retrieving revision 1.11.2.2
  diff -u -r1.11.2.1 -r1.11.2.2
  --- uptodate.html 9 Oct 2003 21:01:07 -   1.11.2.1
  +++ uptodate.html 24 Nov 2003 17:21:30 -  1.11.2.2
  @@ -71,7 +71,10 @@
   pThe nested codelt;mappergt;/code element allows you to specify
   a set of target files to check for being up-to-date with respect to a
   set of source files./p
  -
  +   p
  +  The mapper to attribute is relative to the target file, or to
  +  the dir attribute of the nested srcfiles element.
  +   /p
   h3Examples/h3
   pre  lt;uptodate property=quot;xmlBuild.notRequiredquot; 
targetfile=quot;${deploy}\xmlClasses.jarquot; gt;
   lt;srcfiles dir= quot;${src}/xmlquot; 
includes=quot;**/*.dtdquot;/gt;
  @@ -112,9 +115,30 @@
   if code/usr/local/bin/testit/code is newer than
   code${build}/.flagfile/code./p
   /p
  +  p
  +The following shows usage of a relative mapper.
  +  /p
  +  pre
  +lt;uptodate property=checkUptodate.uptodategt;
  +  lt;srcfiles dir=src includes=* /gt;
  +  lt;mapper type=merge to=../dest/output.done/gt;
  +lt;/uptodategt;
  +lt;echo message=checkUptodate result: ${checkUptodate.uptodate} /gt;
  +  /pre
  +  p
  +The previous example can be a bit confusing, so it may be better to
  +use absolute paths:
  +  /p
  +  pre
  +lt;property name=dest.dir location=dest/gt;
  +lt;uptodate property=checkUptodate.uptodategt;
  +  lt;srcfiles dir=src includes=* /gt;
  +  lt;mapper type=merge to=${dest.dir}/output.done/gt;
  +lt;/uptodategt;
  +  /pre
   
   hr
  -p align=centerCopyright copy; 2000-2002 Apache Software Foundation.
  +p align=centerCopyright copy; 2000-2003 Apache Software Foundation.
   All rights Reserved./p
   
   /body
  
  
  

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