Can you try this against Ivy 2.5.0? Make sure you clean your local Ivy
cache before running this against Ivy 2.5.0.
-Jaikiran
On 19/05/20 12:21 pm, Rick Mann wrote:
> Update: This seems to happen when the dependency is only
>
> conf="compile->*"/>
>
> Other dependencies do work.
>
>> On May 18, 2020, at 19:11 , Rick Mann wrote:
>>
>> Hi there. For the life of me I can't get Ivy to set a classpath using
>> cachepath (I wrote this up on SO, too:
>> https://stackoverflow.com/questions/61869872/ant-ivy-wont-set-compile-classpath):
>>
>> ```
>>
>>
>>
>>
>> ...
>> > refid="runtime.classpath" />
>> runtime.classpath is '${classpathInName}'
>> ```
>>
>> My ivy.xml:
>> ```
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > name="log4j"rev="2.13.3"
>>conf="compile->*"/>
>>
>>
>> ```
>>
>> Output of `ant build` (value of runtime.classpath at the end):
>>
>> ```
>> ...
>> resolve:
>> [ivy:retrieve] :: Apache Ivy 2.4.0 - 20141213170938 ::
>> http://ant.apache.org/ivy/ ::
>> [ivy:retrieve] :: loading settings :: url =
>> jar:file:/usr/local/Cellar/ant/1.10.8/libexec/lib/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
>> [ivy:retrieve] :: resolving dependencies ::
>> com.latencyzero.missiondb#webapp;working@EclipseSSD-4728.local
>> [ivy:retrieve] confs: [compile, provided, runtime, test]
>> [ivy:retrieve] found org.apache.logging.log4j#log4j;2.13.3 in public
>> [ivy:retrieve] :: resolution report :: resolve 85ms :: artifacts dl 1ms
>> -
>> | |modules|| artifacts |
>> | conf | number| search|dwnlded|evicted|| number|dwnlded|
>> -
>> | compile | 1 | 0 | 0 | 0 || 0 | 0 |
>> | provided | 0 | 0 | 0 | 0 || 0 | 0 |
>> | runtime | 1 | 0 | 0 | 0 || 0 | 0 |
>> | test | 1 | 0 | 0 | 0 || 0 | 0 |
>> -
>> [ivy:retrieve] :: retrieving :: com.latencyzero.missiondb#webapp
>> [ivy:retrieve] confs: [compile, provided, runtime, test]
>> [ivy:retrieve] 0 artifacts copied, 0 already retrieved (0kB/4ms)
>>
>> compile:
>> [echo] runtime.classpath is ''
>> ...
>> ```
>>
>> Any idea what I'm doing wrong? Thanks.
>>
>> --
>> Rick Mann
>> rm...@latencyzero.com
>>
>>
>