persistence@glassfish.java.net

Q about the fix for 1030

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 04 Oct 2006 15:12:22 -0700

Hi Tom,

Your fix removes the "generated" Version.java during the build
time, so there is no easy way to verify what had been generated.

<target name="compile" ...
   ...
   <delete file="${component.classes.dir}/oracle/toplink/essentials/Version.java"/>
   ...
</target>

To avoid this, the generation should happen into the special location:
build/src or build/gensrc directory (same is true for .java files
generated from .g - didn't we have an issue for that?), as e.g. we do it
in cmp (see e.g. cmp/support/ejb/build.xml). This allows to easily exclude
those generated files from packaging into the resulting jar.

Should I open another issue for that, or reopen 1030?

thanks,
-marina