---------- Forwarded message ----------
From: Вячеслав Артюхов <[email protected]>
Date: 2009/4/16
Subject: ivy:resolve ant task and JAVA_HOME environment variable.
To: [email protected]
Good day, gentlemans.
I have a problem with <ivy:resolve/> ant task.
I execute my build.xml from command line and behaviour of resolve task
depends on value of JAVA_HOME environment variable.
If JAVA_HOME points to java1.4 than ivy downloads revisions in cache.
If JAVA_HOME points to java1.5 no download is proceed.
I launched my build.xml a large number times and always, when JAVA_HOME
points to java1.4 all revisions were downloads to cache and overwrite them.
And always, when JAVA_HOME points to java1.5 no download is proceed.
Here is my ivysettings.xml
<ivysettings>
<settings defaultResolver="repository" validate="false"/>
<caches checkUpToDate="false"/>
<resolvers>
<chain name="repository" changingPattern=".*" checkmodified="true">
<filesystem name="myFileSystem" changingPattern=".*"
checkmodified="true">
<ivy
pattern="\\\\repository/repository/[organisation]/[module]/[revision]/ivy-[revision].xml"
/>
<artifact
pattern="\\\\repository/repository/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
<artifact
pattern="\\\\repository/repository/[organisation]/[module]/[revision]/[artifact].[ext]"
/>
</filesystem>
</chain>
</resolvers>
</ivysettings>
Here is a part of code in my build.xml:
<ivy:settings file="${ivy.settings.dir}/ivysettings.xml" />
<ivy:resolve file="${root.dir}/ivy.xml" refresh="true"/>
<ivy:retrieve pattern="${root.dir}/../[type]/[artifact].[ext]"/>
I'm sure, all properties ivy.settings.dir, root.dir are correctly set.
Vyacheslav Artyukhov
--
Вячеслав Артюхов.