ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: jakarta-ant/docs/manual/CoreTasks uptodate.html
Date Mon, 01 Apr 2002 07:23:13 GMT
holtdl      02/03/31 23:23:13

  Modified:    docs/manual/CoreTasks uptodate.html
  Flesh out the example to show the prop's use in an "unless". (PR 5775)
  Revision  Changes    Path
  1.8       +17 -0     jakarta-ant/docs/manual/CoreTasks/uptodate.html
  Index: uptodate.html
  RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/uptodate.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- uptodate.html	31 Mar 2002 21:21:37 -0000	1.7
  +++ uptodate.html	1 Apr 2002 07:23:13 -0000	1.8
  @@ -87,8 +87,25 @@
       <mapper type="merge" to="${deploy}\xmlClasses.jar"/>
   as well.
  +The <code>xmlBuild.notRequired</code> property can then be used in a
  +<code>&lt;target&gt;</code> tag's <code>unless</code> attribute
  +conditionally run that target. For example, running the following target:</p>
  +&lt;target name=&quot;xmlBuild&quot; depends="chkXmlBuild" unless="xmlBuild.notRequired&quot;&gt;
  +  ...
  +will first run the <code>chkXmlBuild</code> target, which contains
  +the <code>&lt;uptodate&gt;</code> task that determines whether
  +<code>xmlBuild.notRequired</code> gets set. The property named in
  +the <code>unless</code> attribute is then checked for being set/not set.
  +If it did get set (ie., the jar file is up-to-date),
  +then the <code>xmlBuild</code> target won't be run.
  +<p> The following example shows a single source file being checked
  +against a single target file:</p>
   <pre>  &lt;uptodate property=&quot;isUpToDate&quot;

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message