Not able to set command line arguments while configuring subprojects' task.
task doStuff {
def executable_task = project(':SubProject1').getTasksByName('run',true)
println executable_task.name
println executable_task.args
executable_task.args('xyz')
}
This error message is being showed:
What went wrong: A problem occurred evaluating root project 'MainProject'. No signature of method: java.util.HashSet.args() is applicable for argument types: (java.lang.String) values: [xyz] Possible solutions: any(), grep(), grep(), add(java.lang.Object), add(java.lang.Object), is(java.lang.Object)