If you would be using maven, you could simply use the openjpa-maven-plugin goal 
'enhance' in the process-classes phase.

http://mojo.codehaus.org/openjpa-maven-plugin

LieGrue,
strub


--- ruslan <[EMAIL PROTECTED]> schrieb am So, 23.11.2008:

> Von: ruslan <[EMAIL PROTECTED]>
> Betreff: Re: How do I use commandline PCEnhancer (OpenJPA 1.3) ?
> An: [email protected]
> Datum: Sonntag, 23. November 2008, 22:20
> Will it repack my JAR after instrumenting all classes ?
> 
> I decided to try ANT route and it's not going very well
> either. Here is what
> I tried:
> 
> http://pastebin.com/m4a2e7199
> 
> I'm trying to instrument only one class as experiment,
> but it can't find it
> even though I explicitly defined classpath :(
> 
> Could you please share working ant configuration file where
> PCEnhancer works
> ?
> 
> Thank you!!
> 
> 
> Michael Dick wrote:
> > 
> > Hi,
> > 
> > It looks like the enhancer can't find
> persistence.xml - it's expected to
> > be
> > in a META-INF/ directory somewhere on your classpath.
> Have you tried
> > adding
> > it to the classpath explicitly? The later errors look
> like we can't load a
> > given class file (presumably one that the entity
> depends on), have you
> > tried
> > running with a persistence.xml and a jar with all your
> entities on the
> > classpath?
> > 
> > -mike
> > 
> 
> -- 
> View this message in context:
> http://n2.nabble.com/How-do-I-use-commandline-PCEnhancer-%28OpenJPA-1.3%29---tp1567621p1569749.html
> Sent from the OpenJPA Users mailing list archive at
> Nabble.com.



Reply via email to