Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 73364 invoked by uid 500); 30 Jun 2003 11:14:27 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 73350 invoked from network); 30 Jun 2003 11:14:27 -0000 Received: from unknown (HELO bodewig.bost.de) (62.96.16.111) by daedalus.apache.org with SMTP; 30 Jun 2003 11:14:27 -0000 Received: (from bodewig@localhost) by bodewig.bost.de (8.11.6/8.11.6) id h5UBEQ414039; Mon, 30 Jun 2003 13:14:26 +0200 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: dev@ant.apache.org Subject: Multiple Class-Path in MANIFEST.MF (PRs 4683 and 21170) From: Stefan Bodewig Date: 30 Jun 2003 13:14:26 +0200 Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, PR 21170 showns to rather unrelated problems AFAIU, but I'd like some feedback - especially since Magesh and Conor have been through part of this for PR 4683 already. Problem 1 seems to be that the MANIFEST spec says that attributes cannot be repeated in one section while other specs say that you could do that for the Class-Path attribute in the main section. It seems that JDK 1.4.2 now emits warnings for duplicate attribute names, and these warnings include the Class-Path attribute. I don't see a solution apart from an attribute (mergeclasspath?) to control the behavior for the Class-Path attribute. If set to true multiple Class-Path attributes would get folded into one - making JDK 1.4.2 happy. For backwards compatibility its value would need to be false even though java.util.jar.Manifest will ignore all but the first entry, or so it seems. Problem 2 is that the code in Manifest.Section.merge will not replace the current manifest's Class-Path with the one from the new manifest (as it does for all other attributes), but appends the new lines to the already existing ones. This seems rather easy to fix and will solve the reporter's immediate problem. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org