From 701edaa2a4b18987d4bc09d43e9aca523c9edf22 Mon Sep 17 00:00:00 2001 From: dmharrah Date: Mon, 28 Sep 2009 00:48:10 +0000 Subject: [PATCH] Make cache directory affect resolution cache git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@1059 d89573ee-9141-11dd-94d4-bdf5e562f29c --- src/main/scala/sbt/ManageDependencies.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/sbt/ManageDependencies.scala b/src/main/scala/sbt/ManageDependencies.scala index 6d462a2cb..49c9d4b91 100644 --- a/src/main/scala/sbt/ManageDependencies.scala +++ b/src/main/scala/sbt/ManageDependencies.scala @@ -340,6 +340,7 @@ object ManageDependencies manager.setChangingMatcher(PatternMatcher.REGEXP); manager.setChangingPattern(".*-SNAPSHOT"); settings.setDefaultRepositoryCacheManager(manager) + dir.foreach(dir => settings.setDefaultResolutionCacheBasedir(dir.absolutePath)) } /** Creates an ExcludeRule that excludes artifacts with the given module organization and name for * the given configurations. */