How to add system properties which has "white space" using CLI.

Solution Unverified - Updated -

Issue

For example, following is working when I manually edit confiugraion file to add it.

System.setProperty("msg", "Código Inválido");

But using CLI, the white space is automatically gone.

[standalone@localhost:9999 system-property=msg] :write-attribute(name=value,value=Código Inválido)

result ==> CódigoInválido

If double quote is used, the string is broken.

[standalone@localhost:9999 system-property=msg] :write-attribute(name=value,value="Código Inválido")

result ==> C?digo Inv?lido

How to keep the white space?

Environment

Red Hat JBoss Enterprise Application Platform
-6.x

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