-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we change reStartArgs to be a task ? #38
Comments
current work arround: lazy val startArgs = TaskKey[Seq[String]]("start-args",
"The arguments to be passed to the applications main method when being started")
Revolver.reStart <<= InputTask(Actions.startArgsParser) { args =>
(
streams,
Revolver.reLogTag,
thisProjectRef,
Revolver.reForkOptions,
mainClass in Revolver.reStart,
fullClasspath in Revolver.reStart,
startArgs in Revolver.reStart,
args
).map(Actions.restartApp)
.dependsOn(products in Compile)
}
startArgs in Revolver.reStart := Seq() https://github.com/MasseGuillaume/ScalaKata/blob/0.2.0/Plugin/src/main/scala/com.scalakata/ScalaKata.scala#L46 |
I guess I could change it. I would be a bit against sbt principles which would usually make only those things a Task which likely need to be recomputed for every usage. It may be no problem in this case as only |
I'd like to +1 this issue as I have also now run into a situation where This has me wondering on a philosophical level whether a In any event, beyond the broader observation above, I think |
A setting cannot depend on a task.
The text was updated successfully, but these errors were encountered: