ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guruprasad R <guruprasa...@gmail.com>
Subject Re: Jar task
Date Tue, 17 Jan 2006 13:59:51 GMT
well, one interesting thing i saw in the jar file when i opened it with
winzip is that all the uppercase is stored as lowercase. but when u unzip
it, u will get the folders named with proper uppercase/lowercase.

On 1/17/06, Clifton Craig <ccraig@gbg.com> wrote:
>
> On Tuesday 17 January 2006 6:49 am, Guruprasad R wrote:
> > i am creating a jar file using the below ant script.
> >
> >  <target name="makejar" depends="buildejb">
> >   <jar jarfile="${src}/classes/npacejb.jar" basedir="${src}/classes">
> >    <fileset dir="${src}/classes" includes="**/*.*"/>
> >   </jar>
> >  </target>
> >
> > The created jar file has all the files twice in it, with the same path.
> ex:
> > there are 2 files named as weblogic-ejb-jar.xml with the same path.
> > i have another problem. there are several files whose *path* is
> META-INF.
> > but i am getting the META-INF in small letters. how can i change this
> > meta-inf to META-INF?
> Try the following on the command line in the ${src}/classes folder:
> jar -tvf npacejb.jar
>
> If that shows the path in the jar as meta-inf then use:
> <jar jarfile="${src}/classes/npacejb.jar" basedir="${src}/classes">
>        <metainf dir="${src}/classes/meta-inf"/>
> </jar>
>
> If you have a manifest already in the ${src}/classes/meta-inf folder then
> you'll tuck an inlined <manifest/> element in the jar task to create it in
> the resulting jar.
> --
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message