Hi,
I'm using version 7.4.Final of the jboss-as-maven-plugin and trying to run a CLI script against JBoss EAP 6.1.0 Alpha/Beta via:
{code}
<execute-commands>
<scripts>
<script>src/main/resources/remove-repository.cli</script>
</scripts>
</execute-commands>
{code}
where the first line of script looks like this:
{code}
# Remove the test repository if it exists
if (outcome == success) of /subsystem=modeshape/repository=test-ejb:read-resource
/subsystem=modeshape/repository=test-ejb:remove
end-if
{code}
I always get the following error:
{code}
Unexpected command 'if (outcome == success) of /subsystem=modeshape/repository=test-ejb:read-resource'. Type 'help --commands' for the list of supported commands.
{code}
while running the same script file via
{code}
./jboss-cli.sh -c --file=remove-repository.cli
{code}
works fine.
Is there any reason for this behavior in the plugin and/or a workaround for this ?
Thanks