ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1292584 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/file/FileRepository.java
Date Wed, 22 Feb 2012 23:37:46 GMT
Author: maartenc
Date: Wed Feb 22 23:37:46 2012
New Revision: 1292584

URL: http://svn.apache.org/viewvc?rev=1292584&view=rev
Log:
junit test fix

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/file/FileRepository.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/file/FileRepository.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/file/FileRepository.java?rev=1292584&r1=1292583&r2=1292584&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/file/FileRepository.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/file/FileRepository.java
Wed Feb 22 23:37:46 2012
@@ -137,7 +137,11 @@ public class FileRepository extends Abst
     }
 
     public String standardize(String source) {
-        return FileUtil.normalize(source).getPath();
+        if (baseDir != null) {
+            return FileUtil.resolveFile(baseDir, source).getPath();
+        } else {
+            return FileUtil.normalize(source).getPath();
+        }
     }
 
     public String getFileSeparator() {



Mime
View raw message