ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: Dependency
Date Sun, 03 Dec 2000 23:05:05 GMT
If you just have the one file, look at the <uptodate> task -- it lets you
associate a target with a sourcefile (actually, with any number of
sourcefiles). If you have more than just the one file, you might want to
look over the "mapper" stuff Stefan's been putting through -- I haven't
really had a chance to check it out yet, though, so I'm not entirely sure
it would be useful to you.


--- Mikael Ståldal <> wrote:
> I have a project in which I use a utility to preprocess a source file
> before javac:ing it (JLex). I can use it from Ant, but JLex is run
> every time I run Ant. How do I make it run only when nessesary (i.e.
> when the source file is newer than the target)?
> The relevant part of my build.xml:
>   <target name="lexer">
>     <java classname="JLex.Main">
>       <arg value="${src.dir}/nu/staldal/lsp/LSPExprLexer"/>
>     </java>
>   </target>
> I guess I can solve it by writing a specialized JLex task. However, it
> would be nice with a more general solution to this problem, since there
> are quite a lot of tools like JLex that one might want to use.
> -- 
> /****************************************************************\
> * You have just read a message from Mikael Ståldal.              *
> *                                                                *
> * Remove "ingen.reklam." from the address before mail replying.  *
> \****************************************************************/


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

View raw message