Hi All,

While building the project I'm using the following script in build.xml to
Enhance the classes. Is there any way I can use JPA enhancer class instead
of openJPA enchancer? If yes, can anyone provide the details. 

<target name="enhance">
          <!-- define the openjpac task; this can be done at the top of the    
-->
          <!-- build.xml file, so it will be available for all targets     
org.apache.openjpa.ant.PCEnhancerTask-->
          <taskdef name="openjpac" classpathref="enh.classpath"
classname="org.apache.openjpa.ant.PCEnhancerTask"/>
          <!-- invoke enhancer on all .java files below the model directory -->
        <openjpac>
                <config propertiesFile="./dd/openjpa/persistence.xml"/>
                <!-- <classpath><pathelement location="${build.dir}" 
/></classpath>  -->
                <classpath refid="enh.classpath" />
            <fileset dir=".">
                  <include name="src/com/vormetric/server/dao/user/*DTO.java" 
/> 
            </fileset> 
            <fileset dir="${build.dir}">
                  <include name="PrivilegeDTO.class" />
                  <include name="LoggerConfigDTO.class" />
            </fileset>
        </openjpac>
</target>

Regards,
Sreedhar
-- 
View this message in context: 
http://www.nabble.com/Can-I-use-JPA-PCEnhancer-%21%21-tf4048660.html#a11499932
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Reply via email to