ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r691369 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java
Date Tue, 02 Sep 2008 20:26:20 GMT
Author: maartenc
Date: Tue Sep  2 13:26:20 2008
New Revision: 691369

URL: http://svn.apache.org/viewvc?rev=691369&view=rev
Log:
Reverted changes introduced for fixing IVY-652 since IVY-885 also fixes this issue.

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java?rev=691369&r1=691368&r2=691369&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java Tue
Sep  2 13:26:20 2008
@@ -36,7 +36,6 @@
     private Map resourcesCache = new HashMap();
 
     public Resource getResource(String source) throws IOException {
-        source = encode(source);
         Resource res = (Resource) resourcesCache.get(source);
         if (res == null) {
             res = new URLResource(new URL(source));
@@ -45,11 +44,6 @@
         return res;
     }
     
-    private static String encode(String source) {
-        // TODO: add some more URL encodings here
-        return source.trim().replaceAll(" ", "%20");
-    }
-
     public void get(String source, File destination) throws IOException {
         fireTransferInitiated(getResource(source), TransferEvent.REQUEST_GET);
         try {



Mime
View raw message