Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 52797 invoked from network); 30 Mar 2007 02:15:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Mar 2007 02:15:46 -0000 Received: (qmail 34901 invoked by uid 500); 30 Mar 2007 02:15:53 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 34870 invoked by uid 500); 30 Mar 2007 02:15:53 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 34859 invoked by uid 99); 30 Mar 2007 02:15:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 19:15:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 19:15:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2DBBB714063 for ; Thu, 29 Mar 2007 19:15:25 -0700 (PDT) Message-ID: <14357058.1175220925167.JavaMail.jira@brutus> Date: Thu, 29 Mar 2007 19:15:25 -0700 (PDT) From: "Stuart McCulloch (JIRA)" To: felix-dev@incubator.apache.org Subject: [jira] Commented: (FELIX-265) Empty line in a manifest In-Reply-To: <14779084.1175198485216.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485400 ] Stuart McCulloch commented on FELIX-265: ---------------------------------------- The manifest spec also states: "Groups of name-value pairs are known as a "section". Sections are separated from other sections by empty lines." "The main section contains security and configuration information about the JAR file itself, as well as the application or extension that this JAR file is a part of. It also defines main attributes that apply to every individual manifest entry. No attribute in this section can have its name equal to "Name". This section is terminated by an empty line." If I read this correctly, the empty line in your example would mark the end of the main section of the manifest (which contains the OSGi metadata) and denotes the start of a new section - the manifest parser would expect the new section to start with 'Name: ' and any attributes would only apply to the named jar entry (btw, I don't believe entry-specific OSGi metadata makes sense). I hope this explains why the parsing stops at the new-line. > Empty line in a manifest > ------------------------ > > Key: FELIX-265 > URL: https://issues.apache.org/jira/browse/FELIX-265 > Project: Felix > Issue Type: Bug > Components: Framework > Environment: Mac OS 10.4 and Java 1.4.2 > Reporter: Charles Gouin-Vallerand > > When an empty line is add in a manifest file, the parsing of the manifest stop at the empty line. Like in this example : > Manifest-Version: 1.0 > Ant-Version: Apache Ant 1.6.5 > Created-By: 1.4.2-70 ("Apple Computer, Inc.") > Bundle-Name: IOEventCore > Bundle-SymbolicName: IOEventCore > Bundle-Version: 1.0.0 > Import-Package: ca.usherbrooke.domus.osgi.io.events.connection, > ca.usherbrooke.domus.osgi.io.events.messages, ca.usherbrooke. > domus.osgi.io.events.module, ca.usherbrooke.domus.osgi.io.events.services, org.osgi.framework > Bundle-Activator: ca.usherbrooke.domus.osgi.io.events.core.impl.IOCoreActivator > In this example, the parsing stop after the "Created-By". The problem encountred in this example is that the manifest is generated by ant with the concatenation of the 3 first lines (automatically generated) and a text file containing the rest of the manifest. > An empty line is authorized in the Java-Sun manifest standard : http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#JAR%20Manifest -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.