add console-project tasks to Project

This commit is contained in:
Mark Harrah 2010-09-12 22:49:33 -04:00
parent 129f1e152d
commit e3d39175d4
1 changed files with 6 additions and 1 deletions

View File

@ -145,7 +145,7 @@ object MultiContext
}
}
trait Project extends Tasked with HistoryEnabled with Member[Project] with Named
trait Project extends Tasked with HistoryEnabled with Member[Project] with Named with ConsoleTask
{
val info: ProjectInfo
@ -199,6 +199,11 @@ trait ReflectiveProject extends Project
* This is for any contained projects, including execution and classpath dependencies, but not external projects. */
def dependencies: Iterable[ProjectDependency.Classpath] = vals[ProjectDependency.Classpath]
}
trait ConsoleTask
{
val info: ProjectInfo
lazy val projectConsole = task { Console.sbtDefault(info.compileInputs, this)(ConsoleLogger()) }
}
trait ProjectConstructors extends Project
{