wildfly/wildfly-core — pull request #92 by aloubyansky (2014-08-12 14:05:29+00:00)
Title: https://issues.jboss.org/browse/WFLY-3662 introduced cli command line ha...

...ndling redirection and reworked if-else and try-catch-finally to use that feature

This change allows for control flows like if-else and try-catch-finally to queue the command lines in different blocks and later, depending on the resolved condition, to execute the corresponding queued sequence.

The problem with the previous impl was that the batches were assembled on-the-go while parsing, so commands like echo, module, etc where simply executed right away even before the conditions their execution depended on (from the user's expectation) was evaluated.

Thanks,
Alexey