From holtdl@yahoo.com Sun Dec 3 23:05:05 2000 Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 36413 invoked from network); 3 Dec 2000 23:05:05 -0000 Received: from web109.mail.yahoo.com (HELO web109.yahoomail.com) (205.180.60.76) by locus.apache.org with SMTP; 3 Dec 2000 23:05:05 -0000 Received: (qmail 19537 invoked by uid 60001); 3 Dec 2000 23:05:05 -0000 Message-ID: <20001203230505.19536.qmail@web109.yahoomail.com> Received: from [64.163.67.114] by web109.yahoomail.com; Sun, 03 Dec 2000 15:05:05 PST Date: Sun, 3 Dec 2000 15:05:05 -0800 (PST) From: Diane Holt Subject: Re: Dependency To: ant-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N If you just have the one file, look at the 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. Diane --- 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: > > > > > > > > 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. * > \****************************************************************/ ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/