Does anybody have a complete, working example of the adaptations required in the build.xml of a Netbeans web application project to specify ObjectDB compile time enhancement, for both single file and whole project compilation ?
The ObjectDB 2.3 manual gives the following tip:
<java classname="com.objectdb.Enhancer" fork="true" classpath="c:\objectdb\bin\objectdb.jar"> <arg line="-s c:\my-project\classes\*.class"/> </java>
The (rather overwhelming) nbproject/build-impl.xml of Netbeans, that is included into build.xml, offers a number of empty targets to override in build.xml, such as -post-compile and -post-compile-single. I do not see yet how to relate the manual's example above to these targets and to the various variables available to the Netbeans build.xml via build-impl.xml.
I have thankfully not had to work with ANT in depth or adapt a build.xml for some years, and am not an expert with ANT. A complete example for Netbeans uploaded here would be very helpful.
Until now I have been working with run-time enhancement using objectdb.jar as a javaagent, but I am now seem to be getting clashes between ObjectDB enhancement and JRebel, as reported under: JRebel integration feature, so I want to try compile time enhancement. Besides, as the ObjectDB manual says:
Enhancement by a Java agent is very easy to use and convenient during development. For release, however,
it is recommended to integrate the enhancement in the build process.
Grateful for examples,
Webel