openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: Can enhancer operate on jar files?
Date Wed, 21 Feb 2007 21:11:40 GMT
I've found that the easiest way to deal with jars is to stream from  
the old jar to the new jar.  I've found lots of platform problems  
with unpack and rejar... especially around the cleanup of the  
unpacked dir.

-dain

On Feb 21, 2007, at 10:25 AM, Pinaki Poddar wrote:

>> That implies that I'm that own the development cycle of this code.
>> In this case, I just get a jar from the user.
>
> With current facilities:
> 1. Unpack the entire content of the original jar to some "temp"
> directory.
> 2. Run enhancer with "temp" in classpath and *not* the original jar
> 3. Jar the "temp" directory
> 4. Overwrite the original jar, optinally
>
> This way, if the original content contained other files (meta-inf  
> etc.)
> will be packaged exactly in the  final jar.
> Enhancer will not require to handle rewriting of a Jar file's content.
>
>
>
> Pinaki Poddar
> BEA Systems
> 415.402.7317
>
>
> ______________________________________________________________________ 
> _
> Notice:  This email message, together with any attachments, may  
> contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and   
> affiliated
> entities,  that may be confidential,  proprietary,  copyrighted   
> and/or
> legally privileged, and is intended solely for the use of the  
> individual
> or entity named in this message. If you are not the intended  
> recipient,
> and have received this message in error, please immediately return  
> this
> by email and then delete it.


Mime
View raw message