|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
WeavingIs there a tutorial anywhere on how to configure the EclipseLink Ant Weaving task ( http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_(ELUG)#Using_EclipseLink_JPA_Weaving ) in Eclipse so that the entities are enhanced at build time. I don't know anything about Ant and the XML snippet given at the above URL isn't even valid XML - there's no root element among other things, and I'm totally at a loss as to how to proceed.
Regards |
|||||||||||
|
|
Re: WeavingHi,
I've never used the ant task, but I did use the static weaver, and its pretty much what is said here: http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_Configure_Static_Weaving_for_JPA_Entities Until some ant guru comes along, you could probably call a shell script with the commandline from ant. Michael On Wed, Oct 14, 2009 at 10:22 AM, RogerV <roger.varley@...> wrote:
_______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|||||||||||
|
|
Re: WeavingHere is what I have for our Ant weaving. You should be able to make a few edits and have it work well. <?xml version="1.0"?> <project name="jpa-weaving" default="weaving" basedir="./../.."> <property environment="env"/> <property name="glassfish.home" value="${env.GLASSFISH_HOME}"/> <path id="weavingclasspath"> <pathelement location="${glassfish.home}\lib\javaee.jar"/> <pathelement location="${basedir}\sampleProject\EarContent\lib\eclipselink.jar"/> </path> <target name="define.task" description="New task definition for EclipseLink static weaving" > <taskdef name="weave" classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask"> <classpath refid="weavingclasspath"/> </taskdef> </target> <target name="weaving" description="perform weaving" depends="define.task"> <weave source="${basedir}\ejb-project\build\classes" target="${basedir}\ejb-project\build\classes"> <classpath refid="weavingclasspath"/> </weave> </target> </project> Chris Mathrusse christopher.mathrusse@...
Is there a tutorial anywhere on how to configure the EclipseLink Ant Weaving task ( http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_(ELUG)#Using_EclipseLink_JPA_Weaving ) in Eclipse so that the entities are enhanced at build time. I don't know anything about Ant and the XML snippet given at the above URL isn't even valid XML - there's no root element among other things, and I'm totally at a loss as to how to proceed. Regards -- View this message in context: http://www.nabble.com/Weaving-tp25887169p25887169.html Sent from the EclipseLink - Users mailing list archive at Nabble.com. _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
| Free embeddable forum powered by Nabble | Forum Help |