You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2008/09/02 22:26:20 UTC
svn commit: r691369 -
/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/url/URLRepository.java
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 {