From 6f816b8fe5b8075ae6a976d773006fa0277b7364 Mon Sep 17 00:00:00 2001 From: dmharrah Date: Mon, 6 Jul 2009 22:42:01 +0000 Subject: [PATCH] Fix the provided fix by only including managed dependencies on the provided and optional fullClasspaths git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@845 d89573ee-9141-11dd-94d4-bdf5e562f29c --- src/main/scala/sbt/DefaultProject.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/scala/sbt/DefaultProject.scala b/src/main/scala/sbt/DefaultProject.scala index ba65239b6..fefe966e1 100644 --- a/src/main/scala/sbt/DefaultProject.scala +++ b/src/main/scala/sbt/DefaultProject.scala @@ -132,7 +132,9 @@ abstract class BasicScalaProject extends ScalaProject with BasicDependencyProjec /** This returns the unmanaged classpath for only this project for the given configuration. It by * default includes the main compiled classes for this project and the libraries in this project's * unmanaged library directory (lib) and the managed directory for the specified configuration. It - * also adds the resource directories appropriate to the configuration.*/ + * also adds the resource directories appropriate to the configuration. + * The Provided and Optional configurations are treated specially; they are empty + * by default.*/ def fullUnmanagedClasspath(config: Configuration) = { config match @@ -140,6 +142,7 @@ abstract class BasicScalaProject extends ScalaProject with BasicDependencyProjec case CompilerPlugin => unmanagedClasspath case Runtime => runUnmanagedClasspath case Test => testUnmanagedClasspath + case Provided | Optional => Path.emptyPathFinder case _ => mainUnmanagedClasspath } }