ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik-Berndt Scheper (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved
Date Wed, 17 Sep 2008 09:31:44 GMT

    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631704#action_12631704
] 

Erik-Berndt Scheper commented on IVY-907:
-----------------------------------------

Stacktrace when using ant -debug -verbose

{noformat}
ivy-external-resolver: no latest strategy defined: using default
setting 'ivy.default.ivy.user.dir' to '\\grnfs002\Desktop$\in098sch\.ivy2'
settings loaded (700ms)

BUILD FAILED
D:\ws\eclipse-3.4\AAD\build\build-ivy\build.ivy.xml:75: java.lang.IllegalArgumentException:
ivy.cache.dir must be absolute: ${env.IVY_CACHE_DIR}
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: ${env.IVY_CACHE_DIR}
        at org.apache.ivy.util.Checks.checkAbsolute(Checks.java:57)
        at org.apache.ivy.core.settings.IvySettings.getDefaultCache(IvySettings.java:789)
        at org.apache.ivy.core.settings.IvySettings.dumpSettings(IvySettings.java:505)
        at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:404)
        at org.apache.ivy.Ivy.configure(Ivy.java:422)
        at org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java:272)
        at org.apache.ivy.ant.IvyAntSettings.getConfiguredIvyInstance(IvyAntSettings.java:231)
        at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:92)
        at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        ... 11 more
--- Nested Exception ---
java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: ${env.IVY_CACHE_DIR}
        at org.apache.ivy.util.Checks.checkAbsolute(Checks.java:57)
        at org.apache.ivy.core.settings.IvySettings.getDefaultCache(IvySettings.java:789)
        at org.apache.ivy.core.settings.IvySettings.dumpSettings(IvySettings.java:505)
        at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:404)
        at org.apache.ivy.Ivy.configure(Ivy.java:422)
        at org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java:272)
        at org.apache.ivy.ant.IvyAntSettings.getConfiguredIvyInstance(IvyAntSettings.java:231)
        at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:92)
        at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
{noformat}

> Environment properties in ivy settings are no longer resolved
> -------------------------------------------------------------
>
>                 Key: IVY-907
>                 URL: https://issues.apache.org/jira/browse/IVY-907
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0-RC1
>            Reporter: Erik-Berndt Scheper
>             Fix For: 2.0-RC1
>
>         Attachments: ivysettings.zip
>
>
> I have an ivy.settings.xml file published on an intranet http server, which includes
a property file from the same http server. (see attached files). This property file includes
the property:
> {code}ivy.cache.dir                     = ${env.IVY_CACHE_DIR}{code}
> This environment based property is no longer resolved when I use the proposed ivy-2.0.0-rc1.jar.
This leads to the following error during resolve:
> {noformat}
> ivy.check:
> ivy.init:
>     [mkdir] Created dir: D:\ws\eclipse-3.4\AAD\AAD-domain-model\target\reports\ivy
> ivy.resolve:
> [ivy:resolve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ ::
> :: loading settings :: url = http://172.30.247.68/ivy-settings/ivy.settings.xml
> BUILD FAILED
> D:\ws\eclipse-3.4\AAD\build\build-ivy\build.ivy.xml:75: java.lang.IllegalArgumentException:
ivy.cache.dir must be absolute: ${env.IVY_CACHE_DIR}
> Total time: 2 seconds
> {noformat}
> The same ivy settings files worked perfectly well with a previous ivy which I built from
trunk: org.apache.ivy_2.0.0.rc1_20080813101604.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message