Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Weaving


Here 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@xxxxxxxxxx



[eclipselink-users] Weaving

RogerV to: eclipselink-users
10/14/2009 01:20 AM

Sent by: <eclipselink-users-bounces@xxxxxxxxxxx>

Please respond to EclipseLink User Discussions








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@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top