mirror of https://github.com/apache/ant-ivy
Fix tests: we need the url of the parent dir, not the url of the ivysettings...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1375747 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54fdc54dd2
commit
0ff7c09114
|
|
@ -478,6 +478,8 @@ public class IvySettings implements SortEngineSettings, PublishEngineSettings, P
|
|||
setDeprecatedVariable("ivy.conf.file", "ivy.settings.file");
|
||||
setVariable("ivy.settings.url", settingsFile.toURI().toURL().toExternalForm());
|
||||
setDeprecatedVariable("ivy.conf.url", "ivy.settings.url");
|
||||
setVariable("ivy.settings.dir.url", new File(settingsFile.getAbsolutePath())
|
||||
.getParentFile().toURI().toURL().toExternalForm());
|
||||
} catch (MalformedURLException e) {
|
||||
IllegalArgumentException iae = new IllegalArgumentException(
|
||||
"given file cannot be transformed to url: " + settingsFile);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<settings defaultCache="${ivy.basedir}/build/cache" defaultResolver="m2"/>
|
||||
<resolvers>
|
||||
<ibiblio name="m2" m2compatible="true" useMavenMetadata="true"
|
||||
root="${ivy.settings.url}" />
|
||||
root="${ivy.settings.dir.url}" />
|
||||
<filesystem name="IVY-1324">
|
||||
<ivy pattern="${ivy.basedir}/build/test/install/[organisation]/[module]/[artifact]-[revision].[ext]"/>
|
||||
<artifact pattern="${ivy.basedir}/build/test/install/[organisation]/[module]/[originalname].[ext]"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue