Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JPA Enhancer problem
JPA Enhancer problem [message #194217] Sat, 09 June 2007 12:55
Eclipse UserFriend
Originally posted by:


I'm having a problem with creating a JPA Enhancer builder for my project
I have a JPA Project (using OpenJPA) laid out as follows:-


....with the following contents...





Note: The model classes were generated using the...
JPA Tools => Generate Entities wizard

I then have an ant task at the root...

<project name="enhanceJPA">

<taskdef name="openjpac"
classname="org.apache.openjpa.ant.PCEnhancerTask" />

<!-- invoke enhancer on all .java files -->
<target name="enhance">
<config propertiesFile="./src/META-INF/persistence.xml" />
<fileset dir="./src">
<include name="**/org/chris/jpa/model/*.java" />


If I run the enhancer.xml using "Run As => Ant Build", then the classes
are enhanced correctly.
Note: The classpath of the Ant Build task includes both the \src and
\build\classes folders.

However, if I try and run the enhancer.xml as a Project builder using,
as near as possible, the same settings as for the Ant Build, it fails
saying it cannot find the classes to enhance.

Could anyone shed any light on why this is happening.

Many thanks
Previous Topic:Dali: Not correctly mapping column name 'class'
Next Topic:Connecting to MS SQL Server 2005 with the Database Explorer
Goto Forum:

Current Time: Mon Apr 23 04:09:30 GMT 2018

Powered by FUDForum. Page generated in 0.01864 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software