diff options
-rwxr-xr-x | src/java/net/sf/antcontrib/net/URLImportTask.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java/net/sf/antcontrib/net/URLImportTask.java b/src/java/net/sf/antcontrib/net/URLImportTask.java index 2e14f23..6114368 100755 --- a/src/java/net/sf/antcontrib/net/URLImportTask.java +++ b/src/java/net/sf/antcontrib/net/URLImportTask.java @@ -123,7 +123,12 @@ public class URLImportTask configure.init();
if (ivyConfUrl != null) {
if (ivyConfUrl.getProtocol().equalsIgnoreCase("file")) {
- configure.setFile(new File(ivyConfUrl.getPath()));
+ String path = ivyConfUrl.getPath();
+ File f = new File(path);
+ if (! f.isAbsolute()) {
+ f = new File(getProject().getBaseDir(), path);
+ }
+ configure.setFile(f);
}
else {
try {
|