System property substitution where one property depends on another

Solution Verified - Updated -

Issue

  • How do I define a system property with recursive dependency using the CLI
  • We are creating some system properties, but when we define them we found a problem. First we create a simple system property
/system-property=APP_LOGS:add(value=/opt/logs)

Once created, we add one which refers the previous one

/system-property=MAP_APP_LOGS:add(value=${APP_LOGS}/maps)

But if we see the result we find this: <property name="MAP_APP_LOGS" value="$/maps"/>

It doesn't substitute the property APP_LOGS. Is this right?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.x
    • Command Line Interface ( CLI )

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.