Skip to content
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

Def.taskDyn (and inputTaskDyn) are undocumented #999

Closed
SethTisue opened this issue Nov 22, 2013 · 1 comment
Closed

Def.taskDyn (and inputTaskDyn) are undocumented #999

SethTisue opened this issue Nov 22, 2013 · 1 comment
Assignees
Milestone

Comments

@SethTisue
Copy link
Member

"I guess taskDyn still isn't documented is it. Maybe someone can open a bug and I'll try to get to it for 0.13.2" — @harrah on IRC just now

in the meantime the intrepid searcher can find glimmers of enlightenment at such places as:

http://www.scala-sbt.org/0.13.0/docs/Detailed-Topics/Tasks.html says "Dynamically changing the structure of the task graph is possible. Tasks can be injected into the execution graph based on the result of another task". in 0.12-land you do that with flatMap, in 0.13 you use the Def.taskDyn macro instead.

@SethTisue
Copy link
Member Author

and here's a sample usage of the exotic, elusive creature known as inputTaskDyn, with which even Stack Overflow cannot help you: https://github.com/NetLogo/NetLogo/blob/c1eab1eb1645289d3dc02b33f4ed4ba45f45636f/project/LanguageTests.scala

and another: http://stackoverflow.com/questions/20091719/getting-settings-and-arguments-with-sbts-inputtask/

@ghost ghost assigned harrah Nov 24, 2013
@harrah harrah closed this as completed in 818f4f9 Nov 24, 2013
adleong added a commit to linkerd/linkerd that referenced this issue Jun 14, 2016
# Problem

The run task on the linkerd example configurations does not accept arguments:

```
$ ./sbt 'linkerd-examples/transit:run --log.level=DEBUG'
[info] Loading project definition from /Users/alex/workspace/linkerd/project
[info] Set current project to all (in build file:/Users/alex/workspace/linkerd/)
[error] Expected key
[error] Expected '::'
[error] Expected end of input.
[error] linkerd-examples/transit:run --log.level=DEBUG
```

# Solution

Parse arguments using "the exotic, elusive creature known as inputTaskDyn, with which even Stack Overflow cannot help you" (1) and feed them into `run`.


(1) sbt/sbt#999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants