DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4075>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4075 Manifest task cannot read manifest files with split-line attributes Summary: Manifest task cannot read manifest files with split-line attributes Product: Ant Version: 1.5 alpha (nightly) Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am trying to create a jar file with a manifest that has attributes lines split due to the 72-character limitation. When the manifest file is read, I get the following error: C:\jakarta-ant-1.4\src\etc\testcases\taskdefs\jar.xml:48: Invalid Manifest: C:\jakarta-ant-1.4\src\etc\testcases\taskdefs\manifest.mf at org.apache.tools.ant.taskdefs.Jar.setManifest(Jar.java:117) at org.apache.tools.ant.IntrospectionHelper$15.set(IntrospectionHelper.java:530) at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:2 76) at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:658) at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java :143) at org.apache.tools.ant.Task.maybeConfigure(Task.java:178) at org.apache.tools.ant.Task.perform(Task.java:216) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.TaskdefsTest.executeTarget(TaskdefsTest.java:169) at org.apache.tools.ant.taskdefs.JarTest.test6(JarTest.java:102) --- Nested Exception --- org.apache.tools.ant.taskdefs.ManifestException: Can't start an attribute with a continuation line 9.xml at org.apache.tools.ant.taskdefs.Manifest$Section.read(Manifest.java:278) at org.apache.tools.ant.taskdefs.Manifest.<init>(Manifest.java:485) at org.apache.tools.ant.taskdefs.Jar.setManifest(Jar.java:109) at org.apache.tools.ant.IntrospectionHelper$15.set(IntrospectionHelper.java:530) at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:2 76) at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:658) at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java :143) at org.apache.tools.ant.Task.maybeConfigure(Task.java:178) at org.apache.tools.ant.Task.perform(Task.java:216) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.TaskdefsTest.executeTarget(TaskdefsTest.java:169) at org.apache.tools.ant.taskdefs.JarTest.test6(JarTest.java:102) I get this bug both in Ant 1.4 and the nightly 1.5alpha build. I have modified the JarTest to test this problem. Here is the JarTest diff: $ diff -u JarTest.java~1~ JarTest.java --- JarTest.java~1~ Mon Sep 3 05:48:30 2001 +++ JarTest.java Wed Oct 10 10:07:41 2001 @@ -97,4 +97,8 @@ File jarFile = new File(getProjectDir(), tempJar); assertEquals(jarModifiedDate, jarFile.lastModified()); } + + public void test6() { + executeTarget("test6"); + } } And here is the jar.xml diff: $ diff -u jar.xml.old jar.xml --- jar.xml.old Mon Sep 3 05:48:18 2001 +++ jar.xml Wed Oct 10 09:55:29 2001 @@ -39,4 +39,13 @@ /> </target> + <!-- This test is to make sure line splits in manifest are working --> + <target name="test6"> + <jar + jarfile="tmp.jar" + manifest="manifest.mf" + includes="VeryLongFileName1234567890123456789012345678901234567890123456 789.xml" + /> + </target> + </project> And here is the sample manifest.mf: Manifest-Version: 1.0 Name: VeryLongFileName123456789012345678901234567890123456789012345678 9.xml Thank you. Chris Bonham President/CEO Third Eye Consulting, Inc. [EMAIL PROTECTED] http://www.thirdeyeconsulting.com 317.823.3686 317.823.0353 (FAX)
