ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject RE: Naughty JAXB xjc task is forcing recompilation
Date Tue, 21 Sep 2004 19:48:59 GMT
> From: []
> This is not Ant specific (custom JAXB target), but I was hoping
> on this list could help me out...
> I have a series of directories in my project that contain code. One
> contains xsd files that use the xjc target to generate java files.
> I want to leverage my existing javac targets, I have the xjc output go
> my source directory. It seems that the xjc target will overwrite those
> generated java files always. Thus, my javac target picks up on the
> change and recompiles. This is a pain for my developers who are forced
> recompile this project during every build.

At the time, SUN's <jaxb> task didn't do timestamp checking at all,
so I developed my own, available here, in case you're interested: 

And BTW, I always avoid generating anything in the checked
in source tree, and generate the JAXB-sources in a build/generated/
directory, where they are cleaned-up as usual by the "clean" target.

<javac> takes a nested <src> element, which is a Path of source
directories to scan, so you can use <src path="src;build/generated" />.


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

View raw message