ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: Ant 1.4 Jar metainf Problem?
Date Tue, 20 Nov 2001 14:48:02 GMT
bryan hansen wrote:

> Needless to say it just skips the manifest file that I
> have defined and just uses the one created by ant
> instead.
> Bryan-
> --- bryan hansen <> wrote:
>>I am using Ant1.4 and trying to jar up an
>>I noticed the metainf element and tried to use it to
>>include my manifest file. IE:
>><target name="bundle" depends="compile">
>> <jar jarfile="${dist}/lib/SpecialOrder.jar">
>>   <metainf dir="${src}">
>>     <include name="${src}/META-INF/"/>
>>   </metainf>
>>   <fileset dir="${build}" />	   	
>> </jar>

Use the manifest attribute to identify your manifest file. Then 
everything will be OK.

You normally get a warning if you include a manifest file like this. In 
your case, however, I think you will find that your include directive is 
not including any files since you are actually looking for a file 

Trying removing the ${src} in the include element. You should then get 
the warning. You solve that by dumping the <metainf> element altogether 
and using the manifest attribute.

<jar jarfile="${dist}/lib/SpecialOrder.jar" 

The metainf element is used for non-manifest meta info.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message