You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Xavier Hanin (JIRA)" <ji...@apache.org> on 2007/07/09 07:48:04 UTC

[jira] Commented: (IVY-530) Change default cache location

    [ https://issues.apache.org/jira/browse/IVY-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511051 ] 

Xavier Hanin commented on IVY-530:
----------------------------------

We should also update all tutorials having a clean-cache task. Maybe it's a good time to publish the cache location root as an Ant property (and to provide a cleancache task). The cleancache task is very easy to do once we have the Ant property:
{code}
<presetdef name="cleancache">
  <delete dir="${ivy.cache.dir}" />
</presetdef>
{code}

Publishing the ivy.cache.dir property could be done by publishing all ivy variables as Ant properties at the end of the settings loading. It's very easy with the IvyAntVariableContainer.

The only problem with my proposition for clean cache is that it doesn't work with scoping :-( Maybe we should set ivy.cache.dir.[settingsId] for the cache directory property. Then using presetdef is not possible. Using a macro should be ok though.

I'll create issues for that if they aren't already.

> Change default cache location
> -----------------------------
>
>                 Key: IVY-530
>                 URL: https://issues.apache.org/jira/browse/IVY-530
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-alpha-1
>            Reporter: Maarten Coene
>             Fix For: 2.0.0-alpha-2
>
>
> The caches of Ivy 1.4.1 and Ivy 2.0 are not compatible.
> To avoid conflicts, we should rename the default cache for Ivy 2.0.
> Suggestions: 
> - ${user.home}/.ivy2
> - ${user.home}/.ivy20

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.