Configure task from command line?

(Wujek Srujek) #1

How can I write a task that is configured from the command line, just like for example the ‘dependencies’ task is with ‘–configuration’? Is this possible for custom tasks or restricted to built-ins?

(Peter Niederwieser) #2

Task-specific command line options such as ‘–configuration’ aren’t currently a public feature, but may become one eventually. In the meantime, the best option is to use a system property (’-D’) or project property (’-P’).