You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by aditsu <ad...@yahoo.com> on 2008/10/23 11:40:13 UTC

IvyDE and Ivy versions

Does IvyDE 2.0.0 alpha1 support Ivy 2.0.0 RC1?
If not, is there a newer build of IvyDE that does?
Specifically, I'm having some problems with the cache location (<caches
resolutionCacheDir=... repositoryCacheDir=... /> in ivysettings.xml)

Adrian
-- 
View this message in context: http://www.nabble.com/IvyDE-and-Ivy-versions-tp20127635p20127635.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Ivy cache

Posted by aditsu <ad...@yahoo.com>.
I filed IVY-957 about this problem

Adrian


aditsu wrote:
> 
> 
> 
> 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-tp20127635p20166600.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Ivy cache

Posted by aditsu <ad...@yahoo.com>.
Well, I found a workaround: I added defaultCacheDir="/dev/null" to the caches
tag and it works now.
This doesn't agree with the documentation: "we recommend setting both the
resolutionCacheDir and repositoryCacheDir attributes on this tag *instead
of* using defaultCacheDir"

Adrian
-- 
View this message in context: http://www.nabble.com/IvyDE-and-Ivy-versions-tp20127635p20130186.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Ivy cache

Posted by aditsu <ad...@yahoo.com>.


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: IvyDE and Ivy versions

Posted by aditsu <ad...@yahoo.com>.


aditsu wrote:
> 
> Does IvyDE 2.0.0 alpha1 support Ivy 2.0.0 RC1?
> If not, is there a newer build of IvyDE that does?
> Specifically, I'm having some problems with the cache location (<caches
> resolutionCacheDir=... repositoryCacheDir=... /> in ivysettings.xml)
> 

Oh, it may not be IvyDE's fault.
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

Adrian
-- 
View this message in context: http://www.nabble.com/IvyDE-and-Ivy-versions-tp20127635p20128215.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org