EAP 6 CLI module command inside an if/then executes even when the if statement resolves in false

Solution Verified - Updated -

Issue

I'm trying to accomplish:

if (outcome == failed) of /system-property=jsf-2.2.7/:read-resource
/system-property=jsf-2.2.7/:add(value=1)
module add --name=javax.faces.api --slot=mojarra-2.2.7 --resources=src/main/resources/jsf-module/jsf-api-2.2.7.jar --module-xml=src/main/resources/jsf-module/mojarra-api-module.xml
end-if

But even then the system property is already set, the module add is still executed.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.