-
Bug
-
Resolution: Done
-
Major
-
None
-
6.2.0.GA
-
None
When trying to use jboss environment variables (i.e., jboss.home.dir, jboss.server.base.dir) in either the datasources or resource-adapters subsystems, on a windows machine, the back slashes are removed. Example of datasource:
/subsystem=datasources/data-source=h2:add(jndi-name=java:/accounts-ds, enabled=true, use-java-context=true, driver-name=h2, connection-url="jdbc:h2:mem:accounts;INIT=RUNSCRIPT FROM '${jboss.home.dir}/teiidfiles/customer-schema.sql'\;",user-name=sa, password=sa)
the substitution for ${jboss.home.dir} ends up: c:jbosseapjboss-eap-6.2
The security subsystem has references to ${jboss.server.config.dir} and they appear to work. And I tried to use that env. variable in the above datasource, and it too had its back slashes removed.