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