Browse files

Rename ensure-start-script-tasks to add-start-script-tasks

  • Loading branch information...
1 parent 444fcb5 commit 3e19a55a1edf76b82c86f67bb398247b50ddb1ba @havocp havocp committed Aug 22, 2011
Showing with 7 additions and 7 deletions.
  1. +3 −3
  2. +4 −4 src/main/scala/com/typesafe/startscript/StartScriptPlugin.scala
@@ -3,7 +3,7 @@ which will run that project with the proper classpath.
For now, the best way to use this plugin is to add it globally by
dropping `StartScriptPlugin.scala` into `~/.sbt/plugins` then
-use `ensure-start-script-tasks` followed by `start-script`
+use `add-start-script-tasks` followed by `start-script`
It will be easier to use "normally" once it's published somewhere.
@@ -16,10 +16,10 @@ StartScriptPlugin.scala in `~/.sbt/plugins/` (FIXME once we publish the
directions here change).
If you install the plugin globally, it will add a command
-`ensure-start-script-tasks` to every project using SBT. You can run
+`add-start-script-tasks` to every project using SBT. You can run
this command to add the tasks from the plugin, such as `start-script`
(the `start-script` task won't exist until you
-`ensure-start-script-tasks`, to avoid interfering with projects that
+`add-start-script-tasks`, to avoid interfering with projects that
use the plugin directly and override `start-script`).
The second way to use it is to incorporate it into your project, and
8 src/main/scala/com/typesafe/startscript/StartScriptPlugin.scala
@@ -8,7 +8,7 @@ import Defaults._
import Scope.GlobalScope
object StartScriptPlugin extends Plugin {
- override lazy val settings = Seq(commands += ensureStartScriptTasksCommand)
+ override lazy val settings = Seq(commands += addStartScriptTasksCommand)
// Extracted.getOpt is not in 10.1 and earlier
private def inCurrent[T](extracted: Extracted, key: ScopedKey[T]): Scope = {
@@ -101,8 +101,8 @@ object StartScriptPlugin extends Plugin {
// command to add the startScript tasks, avoiding overriding anything the
// app already has, and intelligently selecting the right target for
// the "start-script" alias
- lazy val ensureStartScriptTasksCommand =
- Command.command("ensure-start-script-tasks") { (state: State) =>
+ lazy val addStartScriptTasksCommand =
+ Command.command("add-start-script-tasks") { (state: State) =>
val allRefs = Project.extract(state).structure.allProjectRefs
val allAppendSettings = allRefs.foldLeft(Seq[Setting[_]]())({ (soFar, ref) =>
soFar ++ getStartScriptTaskSettings(state, ref)
@@ -408,7 +408,7 @@ exit 1
// apps can manually add these settings (in the way you'd use WebPlugin.webSettings),
- // or you can install the plugin globally and use ensure-start-script-tasks to add
+ // or you can install the plugin globally and use add-start-script-tasks to add
// these settings to any project.
val genericStartScriptSettings: Seq[Project.Setting[_]] = Seq(
startScriptFile <<= (target) { (target) => target / "start" },

0 comments on commit 3e19a55

Please sign in to comment.