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

2008-09-22 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-19 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-19 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-19 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-19 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-18 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-18 Thread Maarten Coene (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-18 Thread Maarten Coene (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-18 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-17 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2008-09-17 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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
 -


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

2008-09-17 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-17 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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-simpleecho %IVY_CACHE_DIR%
e:\temp\ivy\test-simple\ivy-cache

E:\temp\ivy\test-simpleant
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;[EMAIL PROTECTED]
[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.