You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org> on 2008/09/17 11:13:46 UTC

[jira] Created: (IVY-907) Environment properties in ivy settings are no longer resolved

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


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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632544#action_12632544 ] 

Xavier Hanin commented on IVY-907:
----------------------------------

Maarten: do you mean JIRA lost sg from you? I only added a comment. BTW, I think your fix is not enough. Well, it should work as long as you use Ivy from Ant. But if you use Ivy standalone, you can still have the same problem. Maybe we could do the variable substitution when we set a variable? WDYT?

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Updated: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik-Berndt Scheper updated IVY-907:
------------------------------------

    Attachment: IVY-907.zip

Demo

> 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: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632573#action_12632573 ] 

Xavier Hanin commented on IVY-907:
----------------------------------

Erik: if this doesn't go in rc1, it will go in 2.0 final only if another blocking issue is found in rc1. Otherwise we will promote rc1 as 2.0 final. Bug hunting is open!
That being said, it doesn't preclude releasing a 2.0.1 pretty quickly after 2.0.0, with this fix and others. But if we delay 2.0.0 with non blocking issues it may last for too long.

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631708#action_12631708 ] 

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

Bug introduced by fix for IVY-387. See http://fisheye6.atlassian.com/browse/ant/ivy/core/trunk/src/java/org/apache/ivy/util/Checks.java

> 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.


[jira] Issue Comment Edited: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631698#action_12631698 ] 

fbascheper edited comment on IVY-907 at 9/17/08 2:22 AM:
------------------------------------------------------------------

Additional comments:
* IVY_CACHE_DIR is an environment setting on my local machine.
* I have included <properties environment="env"/> in the ivy.settings.xml file



      was (Author: fbascheper):
    Note that the IVY_CACHE_DIR is an environment setting on my local machine.
  
> 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633168#action_12633168 ] 

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

Maarten, I've tested your fix in the 2.0.x branch and it works fine for me.
Xavier, the workaround to set 
defaultCacheDir="${ivy.cache.dir}"
in ivy.settings.xml also worked fine.



> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632407#action_12632407 ] 

Maarten Coene commented on IVY-907:
-----------------------------------

Xavier: it seems we were updating this issue at the same time (it's a shame JIRA doesn't seems to have optimistic locking)
Erik: I think another workaround would be to load your environment variables in ant with the property-task before you invoke the Ivy targets

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632266#action_12632266 ] 

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

Hopefully you can reproduce this behaviour.

> 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: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632571#action_12632571 ] 

Xavier Hanin commented on IVY-907:
----------------------------------

bq. Don't we already do a variable subsitution when we set a variable?
You're absolutely right! So the problem was *only* when used from Ant, and your fix should be enough. Good job, sorry for the noise.

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632270#action_12632270 ] 

Maarten Coene commented on IVY-907:
-----------------------------------

I see a difference in the path of your settings.xml file:

latest ivy:
:: loading settings :: file = D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\ivy.settings.xml

older ivy:
:: loading settings :: file = D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\ivy.settings.xml

(Note: It is possible that Ivy logs an incorrect path here.)
Could you confirm that Ivy loads the same settings.xml in both cases?

Maarten

> 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: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632394#action_12632394 ] 

Xavier Hanin commented on IVY-907:
----------------------------------

Ok, I think I've found the problem: the default cache location is initialized by default using the value of the ivy.cache.dir variable. The problem is that during this initialization, variable substitution is not done. In your case you set this variable to ${env.IVY_CACHE_DIR}, which is not expanded by Ivy and thus lead to a non absolute path. 

With the old version it works because you actually never use the default cache location, since you explicitly set the repository cache dir and the resolution cache dir. But if you run with the old version in verbose mode, you will see in the dumped settings that ${env.IVY_CACHE_DIR} is not expanded either.

So the fix is too expand variables values when using the ivy.cache.dir variable to set the default cache dir value.

The workaround is to use another variable as basis for your cache, since you don't actually want to set the default cache with that. Or you can also explicitly set the defaultCacheDir="${ivy.cache.dir}" in your caches settings, since this one will expand the variables values.

To conclude, since there is a workaround, and the bug case is not too frequent (you need to set ivy.cache.dir to a value with a variable) I don't think this is a blocking issue for 2.0-rc1 or 2.0-final either.

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632265#action_12632265 ] 

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

I've tried to compile a project with the behaviour I encounter.
If I run ant ivy.clean.all ivy.resolve after


D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907>set IVY
IVY_CACHE_DIR=D:\ivy-cache

I get the following output
{noformat}
(ant ivy.clean.all ivy.resolve

D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907>ant ivy.clean.all ivy.resolve
Buildfile: build.xml

ivy.check:

ivy.init:

ivy.clean:

ivy.clean.all:

ivy.check:

ivy.init:

ivy.resolve:
[ivy:resolve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\ivy.settings.xml

BUILD FAILED
D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\build.ivy.xml:77: java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: ${env.IVY_CACHE_DIR}
{noformat}


If I change ivy.properties to an old ivy jar file

ivy.jar.filename                =org.apache.ivy_2.0.0.rc1_20080813101604.jar
#ivy.jar.filename                =ivy-2.0.0-rc1.jar

Then all works fine and I get the following output:
{noformat}
D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907>ant ivy.clean.all ivy.resolve
Buildfile: build.xml

ivy.check:

ivy.init:

ivy.clean:

ivy.clean.all:

ivy.check:

ivy.init:

ivy.resolve:
[ivy:resolve] :: Ivy 2.0.0-rc1-local-20080813101604 - 20080813101604 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\ivy.settings.xml
[ivy:resolve] :: resolving dependencies :: nl.ibgroep.aad#aad-domain-model;working@c120800
[ivy:resolve]   confs: [default, master, compile, runtime, test, sources, javadoc]
[ivy:resolve]   found org.junit#junit;4.4 in ivy-external-resolver
[ivy:resolve]   [4.4] org.junit#junit;[4.4,)
[ivy:resolve] :: resolution report :: resolve 375ms :: artifacts dl 0ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   0   |   0   |   0   |   0   ||   0   |   0   |
        |      master      |   0   |   0   |   0   |   0   ||   0   |   0   |
        |      compile     |   0   |   0   |   0   |   0   ||   0   |   0   |
        |      runtime     |   0   |   0   |   0   |   0   ||   0   |   0   |
        |       test       |   1   |   1   |   0   |   0   ||   1   |   0   |
        |      sources     |   1   |   1   |   0   |   0   ||   1   |   0   |
        |      javadoc     |   0   |   0   |   0   |   0   ||   0   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: nl.ibgroep.aad#aad-domain-model [sync]
[ivy:retrieve]  confs: [default, master, compile, runtime, test, sources, javadoc]
[ivy:retrieve]  0 artifacts copied, 2 already retrieved (0kB/31ms)
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-default.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy
\nl.ibgroep.aad-aad-domain-model-default.html
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-master.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy\
nl.ibgroep.aad-aad-domain-model-master.html
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-compile.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy
\nl.ibgroep.aad-aad-domain-model-compile.html
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-runtime.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy
\nl.ibgroep.aad-aad-domain-model-runtime.html
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-test.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy\nl
.ibgroep.aad-aad-domain-model-test.html
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-sources.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy
\nl.ibgroep.aad-aad-domain-model-sources.html
[ivy:report] Processing D:\ivy-cache\resolution\nl.ibgroep.aad-aad-domain-model-javadoc.xml to D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907\doc\ivy
\nl.ibgroep.aad-aad-domain-model-javadoc.html

BUILD SUCCESSFUL
Total time: 2 seconds
D:\ws\eclipse-3.4\IVY-Bugreport\IVY-907\IVY-907>
{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: IVY-907.zip, 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.


[jira] Resolved: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-907.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.x

I think I've found the problem and committed a fix into the SVN "2.0.x" branch.
Could you please give it a try and give us your feedback?

Thanks!

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene updated IVY-907:
------------------------------

    Fix Version/s:     (was: 2.0.x)
                   2.0-RC2

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC2
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632380#action_12632380 ] 

Maarten Coene commented on IVY-907:
-----------------------------------

I could reproduce (I think) some strange behaviour indeed.

If I didn't specify the IVY_CACHE_DIR environment property, I receive following error:

{noformat}
BUILD FAILED
C:\temp\IVY-907\IVY-907\build.xml:14: impossible to configure ivy:settings with
given file: C:\temp\IVY-907\IVY-907\ivy.settings.xml : java.text.ParseException:
 failed to load settings from file:/C:/temp/IVY-907/IVY-907/ivy.settings.xml: iv
y.cache.repository must be absolute: ${env.IVY_CACHE_DIR}/repository
{noformat}

If I do specify the IVY_CACHE_DIR environment property, I receive following error:
{noformat}
BUILD FAILED
C:\temp\IVY-907\IVY-907\build.xml:14: java.lang.IllegalArgumentException: ivy.ca
che.dir must be absolute: ${env.IVY_CACHE_DIR}
{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
>         Attachments: IVY-907.zip, 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.


[jira] Updated: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik-Berndt Scheper updated IVY-907:
------------------------------------

    Attachment: ivysettings.zip

Ivy settings to demonstrate the problem.

> 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.


[jira] Updated: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene updated IVY-907:
------------------------------

    Fix Version/s:     (was: 2.0-RC1)

> 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
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631837#action_12631837 ] 

Xavier Hanin commented on IVY-907:
----------------------------------

Are you sure it worked with the previous version? I mean, did it really expand the variable? Is the variable set? I've made a test on my windows box with the first attempt for 2.0 rc1, and it works without any problem:
{code:title=ivysettings.xml}
<ivysettings>
<properties environment="env" />
<properties file="${ivy.settings.dir}/ivysettings.properties" />
<settings defaultResolver="chain"/>
<caches defaultCacheDir="${ivy.cache.dir}" />
<resolvers>
<chain name="chain" returnFirst="true">
  <filesystem name="local" checkconsistency="false">
	<ivy pattern="${ivy.settings.dir}/local/[module]/ivy.xml" />
	<artifact pattern="${ivy.settings.dir}/local/[module]/[artifact].[ext]" />
  </filesystem>
  <filesystem name="shared">
	<ivy pattern="${ivy.settings.dir}/shared/[module]/[revision]/ivy.xml" />
	<artifact pattern="${ivy.settings.dir}/shared/[module]/[revision]/[artifact].[ext]" />
  </filesystem>
</chain>
</resolvers>
</ivysettings>
{code}

{code:title=ivysettings.properties}
ivy.cache.dir                     = ${env.IVY_CACHE_DIR}
{code}

{code:title=console}
E:\temp\ivy\test-simple>echo %IVY_CACHE_DIR%
e:\temp\ivy\test-simple\ivy-cache

E:\temp\ivy\test-simple>ant
Buildfile: build.xml

resolve:
   [delete] Deleting directory E:\temp\ivy\test-simple\ivy-retrieve
   [delete] Deleting directory E:\temp\ivy\test-simple\ivy-cache
No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be used
[ivy:retrieve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = E:\temp\ivy\test-simple\ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: test#test-local;working@diablo
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found test#B;1.0 in shared
[ivy:retrieve]  found test#C;1.0 in shared
[ivy:retrieve] downloading E:\temp\ivy\test-simple\shared\B\1.0\B.txt ...
[ivy:retrieve] .. (0kB)
[ivy:retrieve]  [SUCCESSFUL ] test#B;1.0!B.txt (0ms)
[ivy:retrieve] downloading E:\temp\ivy\test-simple\shared\C\1.0\C.txt ...
[ivy:retrieve] .. (0kB)
[ivy:retrieve]  [SUCCESSFUL ] test#C;1.0!C.txt (0ms)
[ivy:retrieve] :: resolution report :: resolve 156ms :: artifacts dl 16ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   2   |   2   |   2   |   0   ||   2   |   2   |
        ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: test#test-local
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  2 artifacts copied, 0 already retrieved (0kB/16ms)

BUILD SUCCESSFUL
Total time: 0 seconds
{code}

> 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.


[jira] Assigned: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene reassigned IVY-907:
---------------------------------

    Assignee: Maarten Coene

> 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
>            Assignee: Maarten Coene
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632566#action_12632566 ] 

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

Unfortunately I'm out of the office today, so I don't have time to check this right now. I will certainly check it on Monday though, and provide feedback on Maarten's fix and the suggested workarounds. I do agree with Xavier that this is no blocker for rc1, although I would like to see it fixed for 2.0 final (please). 

BTW: Thanks for the quick turn-around.

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631698#action_12631698 ] 

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

Note that the IVY_CACHE_DIR is an environment setting on my local machine.

> 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.


[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632547#action_12632547 ] 

Maarten Coene commented on IVY-907:
-----------------------------------

Don't we already do a variable subsitution when we set a variable?
The setVariable method on the variablecontainer already calls the substitue method...

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.0.x
>
>         Attachments: IVY-907.zip, 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.