diff --git a/sbt/src/main/scala/sbt/BuilderProject.scala b/sbt/src/main/scala/sbt/BuilderProject.scala index 820360c4f..c8de1a806 100644 --- a/sbt/src/main/scala/sbt/BuilderProject.scala +++ b/sbt/src/main/scala/sbt/BuilderProject.scala @@ -153,8 +153,15 @@ final class BuilderProject(val info: ProjectInfo, val pluginPath: Path, rawLogge lazy val extract = pluginTask(extractSources()) dependsOn(autoUpdate) lazy val autoUpdate = pluginTask(loadAndUpdate(false)) dependsOn(compile) // manual update. force uptodate = false - lazy val update = task { setUptodate(false); loadAndUpdate(true) } dependsOn(compile) + lazy val update = task { manualUpdate() } dependsOn(compile) describedAs("Manual plugin update. Used when autoUpdate is disabled.") + def manualUpdate() = + { + setUptodate(false) + val result = loadAndUpdate(true) + logInfo("'reload' required to rebuild plugins.") + result + } def doSync() = pluginCompileConditional.run orElse { setUptodate(true); None } def extractSources() = { diff --git a/sbt/src/main/scala/sbt/Main.scala b/sbt/src/main/scala/sbt/Main.scala index 813189cdf..ca094d6b2 100755 --- a/sbt/src/main/scala/sbt/Main.scala +++ b/sbt/src/main/scala/sbt/Main.scala @@ -454,6 +454,7 @@ class xMain extends xsbti.AppMain printCmd(SetAction + " ", "Sets the value of the property given as its argument.") printCmd(GetAction + " ", "Gets the value of the property given as its argument.") printCmd(ProjectConsoleAction, "Enters the Scala interpreter with the current project definition bound to the variable 'current' and all members imported.") + printCmd(BuilderCommand, "Set the current project to be the project definition builder.") if(!isInteractive) printCmd(InteractiveCommand, "Enters the sbt interactive shell") }