ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: <uptodate>
Date Tue, 19 Dec 2000 23:01:45 GMT
--- David Corbin <> wrote:
> Can someone post an example of how to use this?  I find the
> documentation to be very sparse.

I use it to prevent my parsers from rebuilding needlessly:
  <target name="chkParser">
    <uptodate property="parser.done"
      <srcfiles dir="${directory}" includes="${jjfile}"/>
and here's the opening line of the target that depends on it:
  <target name="genParser" depends="chkParser" unless="parser.done">

If the source file (foo.jj) is newer than the file it generates, the
"genParser" target is run; otherwise, not.

Hope this helps,


Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.

View raw message