On Jun 3, 2009, at 4:07 AM, Helmut Denk wrote:


hi gradle-users and developers,

for myCompanys ant+ivy-based buildsystem we use 2
repository caches. One for the SNAPSHOT-artefacts and
one for all the other artefacts. we do this because we
want to be able to run the command 'cleanSnapshotCache'
that wipes out all the cached SNAPSHOT-artefacts (including
metadata) but leaves all other cached artefacts untouched.

we learned that we need to wipe out SnapshotCache in some
situations because otherwise we get into trouble with the resolving
of our SNAPSHOT-artefacts. (-> multiple chained snapshot-repositories,
useOrigin, caching of ivy-metadata)

my question is: can i define and use multiple artefact-caches
with gradle too

Yes

? how ?

Have a look at some internal Gradle code where we set the cache manager of a resolver:

http://svn.codehaus.org/gradle/gradle-core/branches/RB-0.6/src/main/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultResolverFactory.java

The interesting methods are createFlatDirResolver and createUseOriginCacheManager.

<snip>


of course ... any way that makes the use of
multiple caches obsolete is preferred.

Are those simply Ivy bugs? If so, are there Jira's for this?

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to