openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: How can I deploy build-time enhanced classes in Eclipse?
Date Tue, 22 Dec 2009 17:28:39 GMT

> I have to be able to run the Ant task to enhance the classes, which writes
the modified class
> files to a separate folder, 

1. Directly invoking <java classname="...openjpa.enhance.PCEnhancer"> from
Ant
   is slightly less finicky about classpath that PCEnhancerTask

2. By default, enhancer overwrites the *.class files.


KARR, DAVID (ATTCINW) wrote:
> 
> This may be mostly an Eclipse issue, but perhaps this is a common issue.
> 
> In order for me to be able to use build-time enhanced classes, and
> deploy this to WebLogic from within Eclipse, I have to be able to run
> the Ant task to enhance the classes, which writes the modified class
> files to a separate folder, and then my project has to know to get those
> enhanced classes instead of the unenhanced classes.  In my "Libraries"
> section, I've added that folder as a library.  In the "Order and Export"
> section, I moved that folder to the top of the list.  I believe this
> means that it will reference that directory earlier than later
> directories.  When assembling the WAR, I would hope that means that it
> would copy the class directories into the WAR in reverse order, so the
> one at the top is copied last.
> 
> I tried doing an "export" of the WAR file, then I examined the class
> files that should have been enhanced, and it was clear that they were
> the unenhanced class files.
> 
> Or, is it just impossible to do this, and do I have to completely
> assemble the WAR file from Ant and directly deploy that, instead of
> running projects in Eclipse?
> 
> 


-----
Pinaki 
-- 
View this message in context: http://n2.nabble.com/How-can-I-deploy-build-time-enhanced-classes-in-Eclipse-tp4171667p4204692.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message