Author: alessio.soldano(a)jboss.com
Date: 2012-12-10 04:14:13 -0500 (Mon, 10 Dec 2012)
New Revision: 17061
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSSpringBusFactory.java
Log:
Use SecurityActions to get system props
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSSpringBusFactory.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSSpringBusFactory.java 2012-12-10
09:03:28 UTC (rev 17060)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSSpringBusFactory.java 2012-12-10
09:14:13 UTC (rev 17061)
@@ -67,8 +67,8 @@
{
try
{
- String userCfgFile =
System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_NAME);
- String sysCfgFileUrl =
System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_URL);
+ String userCfgFile =
SecurityActions.getSystemProperty(Configurer.USER_CFG_FILE_PROPERTY_NAME, null);
+ String sysCfgFileUrl =
SecurityActions.getSystemProperty(Configurer.USER_CFG_FILE_PROPERTY_URL, null);
Resource r =
BusApplicationContext.findResource(Configurer.DEFAULT_USER_CFG_FILE);
if (!customContextProvided && userCfgFile == null && cfgFiles ==
null && sysCfgFileUrl == null
&& (r == null || !r.exists()) && includeDefaults)