ant itself doesn't support such a construct. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708699 13f79535-47bb-0310-9956-ffa450edef68
9 lines
201 B
Groovy
9 lines
201 B
Groovy
def condition = elements.condition
|
|
def commands
|
|
if (condition[0].eval()) {
|
|
commands = elements.commands
|
|
} else {
|
|
commands = elements.else
|
|
}
|
|
if (commands && !commands.isEmpty()) commands[0].execute()
|