ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: [Ant 1.6.5] Question on "OutOfDate" Usage
Date Fri, 28 Sep 2007 17:10:28 GMT
On 9/28/07, Anil VVNN <> wrote:
> I'm trying to use "OutOfDate" task for the following requirement,[...]
>       <targetfiles>
>         <pathelement path="${}"/>
>       </targetfiles>
> [...]
> But is called always (no matter whether there is a change
> to XSD's or not).

Could be that your "target files" should be all the generated files
inside, instead of (or in addition to) just
If any target file is older than any source file, the sequential will
fire. Could be you only need a <touch> on in the
sequential too.

The problem with this approach is that the sequential will no fire for
missing generated files, and to deal with this, you either need to use
<filelist> in targetfiles, if you know the generated file names
(possibly via a mapper and the input sources), or write a custom task
that records all generated files after each sequential, so test
they're all here and up-to-date on the next run (what I did in my
<jaxb> task in BugZilla). --DD

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

View raw message