On 9/28/07, Peter Reilly <[EMAIL PROTECTED]> wrote: > <xjc schema="${main.dir}/schema/@{xsd}.xsd" > destdir="${gen.java}" > package="[EMAIL PROTECTED]" > extension="yes" > > > <produces dir="${gen.java}/com/COMPANY/presence/xsd/@{package}" > includes="**/*.java"/> > </xjc>
It's a PITA to have to specify the target package each time. I still prefer my approach to use a mapper to infer the package from the location of the .xsd in the source tree. Very convenient when you have many .xsd to compile, and there's no need to touch the build when new .xsd files are added, so scale well. Plus unless <xjc> has improved, the dependency checking I was doing was better since recording the output post-generation in a manifest to accurately trigger the regeneration even for missing output files. But all this starts to date quite a bit, now that I don't work with Java and Ant anymore. In any case, your <ac:outofdate> task was very useful to me Peter, back in the days, and the builds are still running with it to this day, long after I passed the baton. Thanks again for it. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]