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?
wujek_srujek (Wujek Srujek) #1
Peter_Niederwieser (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’).