ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1201268 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/jar/JarResource.java
Date Sat, 12 Nov 2011 14:12:02 GMT
Author: hibou
Date: Sat Nov 12 14:12:02 2011
New Revision: 1201268

URL: http://svn.apache.org/viewvc?rev=1201268&view=rev
Log:
isLocal actually means that the name of the resource is a file: not true for jar resource

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/jar/JarResource.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/jar/JarResource.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/jar/JarResource.java?rev=1201268&r1=1201267&r2=1201268&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/jar/JarResource.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/jar/JarResource.java Sat
Nov 12 14:12:02 2011
@@ -55,7 +55,8 @@ public class JarResource implements Reso
     }
 
     public boolean isLocal() {
-        return true;
+        // not local as it is not a directly accessible file
+        return false;
     }
 
     public Resource clone(String cloneName) {
@@ -66,4 +67,7 @@ public class JarResource implements Reso
         return jarFile.getInputStream(entry);
     }
 
+    public String toString() {
+        return jarFile.getName() + "!" + getName();
+    }
 }



Mime
View raw message