ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Corbin <dcor...@machturtle.com>
Subject Re: <uptodate>
Date Wed, 20 Dec 2000 01:03:06 GMT
Diane Holt wrote:
> 
> --- David Corbin <dcorbin@machturtle.com> 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"
>               targetfile="${directory}/${chkfile}">
>       <srcfiles dir="${directory}" includes="${jjfile}"/>
>     </uptodate>
>   </target>
> 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,
> Diane
> 
> =====
> (holtdl@yahoo.com)
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/

Yes,  it does.  My mistake was in the unless clause, where I was doing
"${parser.done}".

-- 
David Corbin 		
Mach Turtle Technologies, Inc.
http://www.machturtle.com
dcorbin@machturtle.com

Mime
View raw message