Hi,

When building gcjwebplugin and using kaffe jar I noticed that when -C
was used the first directory name was always stripped of files in
subdirectories of the directory of the -C argument.

The following patch fixes it. This should be an if-else since in the if
branch tmp is made absolute so if the first if statement succeeds the
second if statement also (erronously) succeeds.

Cheers,

Mark

        * libraries/javalib/kaffe/tools/jar/Jar.java
        (createFileLookupTable): Don't double check File.isAbsolute().

--- libraries/javalib/kaffe/tools/jar/Jar.java  27 Apr 2004 18:25:19
-0000     1.6
+++ libraries/javalib/kaffe/tools/jar/Jar.java  14 Aug 2004 20:33:07
-0000
@@ -494,9 +494,7 @@

            if (! tmp.isAbsolute()) {
                tmp = new XPFile(parent,files[i]);
-           }
-
-           if (tmp.isAbsolute()) {
+           } else {
                // Find and remove the first '/' in the short name
                String name = files[i];
                int index = name.indexOf('/');

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to