aditsu wrote:
> 
> I have this ivysettings file: http://pastebin.com/m1e561155
> And I'm calling ivy:resolve from an ant build script (with -v). I get
> these messages (among others):
> 
> no default cache defined: set to /home/aditsu/.ivy2/cache
>       default cache: /home/aditsu/.ivy2/cache
> 
> So it downloads the files to that location instead of the one I specified.
> If I delete the .ivy2 directory and create a file instead, retrieve fails.
> Am I doing anything wrong? IIRC it worked well with Ivy 2.0.0 beta2
> 

I decided to pull the sources from svn and debug it. And I found that in
IvySettings.load(File), it sets the correct repository cache dir during the
parse (line 377) then later it overwrites it with the wrong one during
dumpSettings (line 386). Is this a bug?
Here are the two stack traces:

[ivy:resolve]   at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.setBasedir(DefaultRepositoryCacheManager.java:163)
[ivy:resolve]   at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.<init>(DefaultRepositoryCacheManager.java:109)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.getDefaultRepositoryCacheManager(IvySettings.java:1205)
[ivy:resolve]   at
org.apache.ivy.plugins.resolver.AbstractResolver.initRepositoryCacheManagerFromSettings(AbstractResolver.java:374)
[ivy:resolve]   at
org.apache.ivy.plugins.resolver.AbstractResolver.validate(AbstractResolver.java:408)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.validateAll(IvySettings.java:1447)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.validate(IvySettings.java:1424)
[ivy:resolve]   at
org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
[ivy:resolve]   at
org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:149)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:377)
[ivy:resolve]   at org.apache.ivy.Ivy.configure(Ivy.java:411)

and

[ivy:resolve]   at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.setBasedir(DefaultRepositoryCacheManager.java:163)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.setDefaultCache(IvySettings.java:712)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.getDefaultCache(IvySettings.java:792)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.dumpSettings(IvySettings.java:505)
[ivy:resolve]   at
org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:386)
[ivy:resolve]   at org.apache.ivy.Ivy.configure(Ivy.java:411)
-- 
View this message in context: 
http://www.nabble.com/IvyDE-and-Ivy-versions-tp20127635p20129700.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to