mirror of https://github.com/sbt/sbt.git
Add description to update-plugins and add 'builder' help message.
This commit is contained in:
parent
84e23d6e61
commit
47aed79b07
|
|
@ -153,8 +153,15 @@ final class BuilderProject(val info: ProjectInfo, val pluginPath: Path, rawLogge
|
||||||
lazy val extract = pluginTask(extractSources()) dependsOn(autoUpdate)
|
lazy val extract = pluginTask(extractSources()) dependsOn(autoUpdate)
|
||||||
lazy val autoUpdate = pluginTask(loadAndUpdate(false)) dependsOn(compile)
|
lazy val autoUpdate = pluginTask(loadAndUpdate(false)) dependsOn(compile)
|
||||||
// manual update. force uptodate = false
|
// 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 doSync() = pluginCompileConditional.run orElse { setUptodate(true); None }
|
||||||
def extractSources() =
|
def extractSources() =
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -454,6 +454,7 @@ class xMain extends xsbti.AppMain
|
||||||
printCmd(SetAction + " <property> <value>", "Sets the value of the property given as its argument.")
|
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(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(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)
|
if(!isInteractive)
|
||||||
printCmd(InteractiveCommand, "Enters the sbt interactive shell")
|
printCmd(InteractiveCommand, "Enters the sbt interactive shell")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue