ant-notifications mailing list archives

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

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


Mime
View raw message