Is it possible to use the system property in the JBoss CLI deploy command

Solution Unverified - Updated -

Issue

How to use the system property in the JBoss CLI deploy command?

jboss-cli.sh -c --controller=localhost:9999 --file=deploy.cli --properties=script.properties

deploy.cli:

deploy /home/server/deploy/SampleApp.war --server-groups=${env}-other-group

script.properties:

env=main
  • Not able to substitute system property in EAP 6 CLI-command.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0
    • 6.1
    • 6.2
    • 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content