1

I am trying to make a task execute several inputKey.

myTask := Def.taskDyn {
   val outputOfMyInputKey = myInputKey.[WHAT SHOULD I DO HERE].value

   Def.task {
      // do something with outputOfMyInputKey
   }
}

Anybody knows how to call inputKey with default parameters ?

I tried parsed , evaluated, value, inputTaskValue but none of them works.

Thanks.

1 Answer 1

3

Take a look at this section of the sbt docs: Get a Task from an InputTask. You can use .toTask to provide input for your input task:

myInputKey.toTask("").value

Notice that if you provide a non-empty input, it should start with a space:

myInputKey.toTask(" arg1 arg2").value
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.