Here is a micro-patch that makes Ant's jar task as 
forgiving as the JDK's jar app.

Thanks,
Magesh
 
Index: Manifest.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java,v
retrieving revision 1.6
diff -u -w -r1.6 Manifest.java
--- Manifest.java       2001/10/11 14:55:07     1.6
+++ Manifest.java       2001/10/11 19:59:17
@@ -269,7 +269,7 @@
             Attribute attribute = null;
             while (true) { 
                 String line = reader.readLine();
-                if (line == null || line.length() == 0) {
+                if (line == null || line.trim().length() == 0) {
                     return null;
                 }
                 if (line.charAt(0) == ' ') {

Reply via email to