ilscipio/scipio-erp

View on GitHub
framework/base/ant-scripts/if-script.groovy

Summary

Maintainability
Test Coverage
/*
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
*/

def condition = elements.condition
def commands
if (condition[0].eval()) {
 commands = elements.commands
} else {
 commands = elements.else
}
if (commands && !commands.isEmpty()) commands[0].execute()