On Thu, 12 Jul 2001, Rob's Apollo <[EMAIL PROTECTED]> 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