[armedbear-cvs] r12643 - trunk/abcl/src/org/armedbear/lisp
Mark Evenson
mevenson at common-lisp.net
Sat May 1 14:24:57 UTC 2010
Author: mevenson
Date: Sat May 1 10:24:57 2010
New Revision: 12643
Log:
Under Windows, properly reference jars on other drive letters.
Modified:
trunk/abcl/src/org/armedbear/lisp/ZipCache.java
Modified: trunk/abcl/src/org/armedbear/lisp/ZipCache.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/ZipCache.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/ZipCache.java Sat May 1 10:24:57 2010
@@ -182,7 +182,15 @@
} else {
if (url.getProtocol().equals("file")) {
entry = new Entry();
- File f = new File(url.getPath());
+ String path = url.getPath();
+
+ if (Utilities.isPlatformWindows) {
+ String authority = url.getAuthority();
+ if (authority != null) {
+ path = authority + path;
+ }
+ }
+ File f = new File(path);
entry.lastModified = f.lastModified();
try {
entry.file = new ZipFile(f);
More information about the armedbear-cvs
mailing list