raw Project vals are added as execution dependencies

This commit is contained in:
Mark Harrah 2010-09-17 22:12:17 -04:00
parent 0d5814e2b3
commit 3a8235a614
1 changed files with 1 additions and 2 deletions

View File

@ -191,8 +191,7 @@ trait ProjectExtra
trait ReflectiveProject extends Project
{
private[this] def vals[T: Manifest] = ReflectUtilities.allVals[T](this).map(_._2)
// TODO: what to do with raw Projects
def aggregate: Iterable[ProjectDependency.Execution] = vals[ProjectDependency.Execution]// ++ vals[Project].map(p => ProjectDependency.Execution(Right(p)))
def aggregate: Iterable[ProjectDependency.Execution] = vals[ProjectDependency.Execution] ++ vals[Project].map(p => ProjectDependency.Execution(Right(p)))
/** All projects directly contained in this that are defined in this container's compilation set.
* This is for any contained projects, including execution and classpath dependencies, but not external projects. */
def dependencies: Iterable[ProjectDependency.Classpath] = vals[ProjectDependency.Classpath]