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 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.