ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: manifest
Date Fri, 13 Jul 2001 05:07:43 GMT
On Thu, 12 Jul 2001, Rob's Apollo <rcartier@apollo.homeip.net> wrote:

> I declare the manfest file in the jar syntax
> but it complains that I need to use the manifest attribute and that
> the manifest will be excluded from the jar. :(
> 
> <jar jarfile="${inijarDir}"
>        basedir="${build}/classes/ini"
>        manifest="${build}/classes/ini/META-INF/MANIFEST.MF"
>   />

Ant complains because your manifest file is included twice, once via
the explicit manifest attribute and once as part of the files that you
are going to add.  Make that

<jar jarfile="${inijarDir}"
       basedir="${build}/classes/ini"
       manifest="${build}/classes/ini/META-INF/MANIFEST.MF"
       excludes="META-INF/MANIFEST.MF"
  />

and it should work.

Stefan

Mime
View raw message