ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Naughty JAXB xjc task is forcing recompilation
Date Tue, 21 Sep 2004 19:48:59 GMT
> From: RPearse@360commerce.com [mailto:RPearse@360commerce.com]
> 
> This is not Ant specific (custom JAXB target), but I was hoping
someone
> 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.
Since
> I want to leverage my existing javac targets, I have the xjc output go
to
> 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
to
> 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:
http://issues.apache.org/bugzilla/show_bug.cgi?id=14640 

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" />.

--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message