mirror of https://github.com/sbt/sbt.git
add console-project tasks to Project
This commit is contained in:
parent
129f1e152d
commit
e3d39175d4
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue