Add description to update-plugins and add 'builder' help message.

This commit is contained in:
Mark Harrah 2010-04-08 20:14:51 -04:00
parent 84e23d6e61
commit 47aed79b07
2 changed files with 9 additions and 1 deletions

View File

@ -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() =
{

View File

@ -454,6 +454,7 @@ class xMain extends xsbti.AppMain
printCmd(SetAction + " <property> <value>", "Sets the value of the property given as its argument.")
printCmd(GetAction + " <property>", "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")
}