You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Guillaume Rousse <ro...@ccr.jussieu.fr> on 2001/10/31 10:43:09 UTC
ant jar warning
I have to build a jar with some special options in manifest, so i use a
pseudo-manifest file with such options, and let jar task complete it.
However, it spits out large number of warning as the pseudo-manifest is not
OK:
jar:
[jar] Building jar: /home/guillaume/dev/work/osis/build/lib/osis-0.3.jar
[jar] Manifest warning: "Name" attributes should not occur in the main
section and must be the first element in all other sections: "Name:
fr/jussieu/snv/lis/osis/model/name/NameModification.class"
[jar] Manifest warning: "Name" attributes should not occur in the main
section and must be the first element in all other sections: "Name:
fr/jussieu/snv/lis/osis/model/name/FamilyGroupName.class"
[...]
My pseudo-manifest is:
Name: fr/jussieu/snv/lis/osis/model/name/NameModification.class
Java-Bean: truer/jussieu/snv/lis/osis/model/name/NameModification.class"
Name: fr/jussieu/snv/lis/osis/model/name/NameCreation.class
Java-Bean: true
[...]
So, is there a way to avoid such warnings ? Should i use a complete manifest
instead ?
--
Guillaume Rousse <ro...@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ant jar warning
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Guillaume Rousse wrote:
> I have to build a jar with some special options in manifest, so i use a
> pseudo-manifest file with such options, and let jar task complete it.
> However, it spits out large number of warning as the pseudo-manifest is not
> OK:
> jar:
> [jar] Building jar: /home/guillaume/dev/work/osis/build/lib/osis-0.3.jar
> [jar] Manifest warning: "Name" attributes should not occur in the main
> section and must be the first element in all other sections: "Name:
> fr/jussieu/snv/lis/osis/model/name/NameModification.class"
> [jar] Manifest warning: "Name" attributes should not occur in the main
> section and must be the first element in all other sections: "Name:
> fr/jussieu/snv/lis/osis/model/name/FamilyGroupName.class"
> [...]
>
> My pseudo-manifest is:
> Name: fr/jussieu/snv/lis/osis/model/name/NameModification.class
> Java-Bean: truer/jussieu/snv/lis/osis/model/name/NameModification.class"
> Name: fr/jussieu/snv/lis/osis/model/name/NameCreation.class
> Java-Bean: true
> [...]
>
> So, is there a way to avoid such warnings ? Should i use a complete manifest
> instead ?
>
The best thing to do will be to add a blank line before each "Name:"
line. This is required by the jar specification to separate manifest
sections.
Conor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>