Author: scabanovich
Date: 2012-08-10 15:29:39 -0400 (Fri, 10 Aug 2012)
New Revision: 42980
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java
Log:
JBIDE-12416
https://issues.jboss.org/browse/JBIDE-12416
Support jar entries that start with /.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java 2012-08-10
19:04:17 UTC (rev 42979)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java 2012-08-10
19:29:39 UTC (rev 42980)
@@ -213,6 +213,9 @@
boolean first = true;
try {
ZipEntry entry = jar.getEntry(path);
+ if(entry == null && fileEntries.containsKey("/" + path)) {
+ entry = jar.getEntry("/" + path);
+ }
if(entry == null) {
String error = "JarAccess: cannot obtain entry for path '" + path +
"' from jar '" + location + "'.";
//$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
errors.add(error);