The thing is that you can't enforce all projects to specify their default cache like this. Even if a project specifies their defaultCache to /my/verycool/cache, this system property will override this setting. This could be usefull for gump (or another continuous-integration build), because they don't have control over the settings the projects use. Specifying this property will ensure them that Ivy caches to the specified directory which will it make easier to cleanup the cache after a run.
But I think it should not be limited to the default cache. I think this system property should also override the optional cache property specified with the Ant tasks. Maarten ----- Original Message ---- From: Jeffrey Blattman <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, July 10, 2007 12:02:18 AM Subject: Re: Fw: size of java cache dirs - .ivy is huge! is anything required to do what maarten suggested? call it whatever you want, ant -Dmy.cache.dir=/foo/bar ... then in ivysettings.xml, <settings defaultCache="${my.cache.dir}" ... Xavier Hanin wrote: > On 7/9/07, Maarten Coene <[EMAIL PROTECTED]> wrote: >> >> Maybe we should allow gump to override the cache location of a project ( >> e.g. by passing a system-property to ant)? >> e.g.: ant -f build.xml -Divy.cache=some_directory >> >> No matter how the project tries to configure Ivy, Ivy always use this >> cache directory... > > > If we use ivy.cache.dir for this purpose it will be consistent with the > exposition of the cache directory I've just implemented. And it shouldn't > raise too much backward compatibility problem, since it's very > unlikely that > people used this property for something else than the cache location. > So I'm > +1 to add this improvement. > > Xavier > > Maarten >> >> ----- Original Message ---- >> From: Jeffrey Blattman <[EMAIL PROTECTED]> >> To: [email protected] >> Sent: Monday, July 9, 2007 2:51:17 PM >> Subject: Re: Fw: size of java cache dirs - .ivy is huge! >> >> it might be helpful to set defaultCache="..." so you can isolate / clean >> the cache for a particular project. it's not friendly to remove >> ~/.ivy/cache, because you never know what the user is using it for. >> >> Maarten Coene wrote: >> > Any idea how we can help the gump people? >> > >> > -- >> > Maarten >> > >> > ----- Forwarded Message ---- >> > From: Leo Simons <[EMAIL PROTECTED]> >> > To: Gump code and data <[EMAIL PROTECTED]> >> > Sent: Sunday, July 8, 2007 2:13:37 PM >> > Subject: size of java cache dirs - .ivy is huge! >> > >> > Of interest: >> > >> > [EMAIL PROTECTED]:/home/gump# cd ~gump >> > [EMAIL PROTECTED]:/home/gump# du -hs .ivy >> > 1.2G .ivy >> > [EMAIL PROTECTED]:/home/gump# du -hs .maven >> > 41M .maven >> > [EMAIL PROTECTED]:/home/gump# du -hs .m2 >> > 791M .m2 >> > >> > While we have a bunch of different stuff in .maven and .m2, almost >> > all of the stuff in ~gump/.ivy is smartfrog artifacts, going back >> > months and months and months. There's no reason for gump to keep >> > months of generated jars. I'd argue that either >> > >> > * there must be a way to configure ivy to do a "SNAPSHOT" thingie >> > >> > or >> > >> > * we must erase ~/.ivy after every run >> > >> > opinions? >> > >> > Actually, I guess we could also just erase .maven and .m2, once a >> > week, too. >> > >> > cheers, >> > >> > Leo Simons >> > -- >> > http://www.leosimons.com/blog/ >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> > >> > >> > >> > >> ____________________________________________________________________________________ >> >> >> > Shape Yahoo! in your own image. Join our Network Research Panel >> today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 >> > >> > >> > >> > >> >> >> >> >> >> >> >> ____________________________________________________________________________________ >> >> >> Moody friends. Drama queens. Your life? Nope! - their life, your story. >> Play Sims Stories at Yahoo! Games. >> http://sims.yahoo.com/ >> > > > ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265
