Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 39292 invoked from network); 31 Oct 2001 12:23:29 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 31 Oct 2001 12:23:29 -0000 Received: (qmail 28164 invoked from network); 31 Oct 2001 12:25:37 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 31 Oct 2001 12:25:37 -0000 Received: (qmail 29409 invoked by uid 97); 31 Oct 2001 12:23:17 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 29393 invoked by uid 97); 31 Oct 2001 12:23:17 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 29369 invoked from network); 31 Oct 2001 12:23:15 -0000 Message-ID: <3BDFEDA9.7020802@cortexebusiness.com.au> Date: Wed, 31 Oct 2001 23:25:13 +1100 From: Conor MacNeill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010917 X-Accept-Language: en-us, en-au MIME-Version: 1.0 To: Ant Users List Subject: Re: ant jar warning References: <20011031094309.D9A9A5558@silbermann.snv.jussieu.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: