I have a task, something like:
task doSomething(type: Exec){
commandLine "cmd", "/c", "flavour"
}
How can I made a specific variable and pass it into this method ? I tried something like this:
task doSomething(type: Exec, myVariable: String){
commandLine "cmd", "/c", "$myVariable"
}
but it doesn't work
and i would like to assing this value in productFlavours like:
productFLavors {
flavor1{
myVariable = "flavor1"
}
flavour2{
myVariable = "flavor2"
}
}
I tried everything and I'm still getting errors :/