List of usage examples for java.lang System setProperty
public static String setProperty(String key, String value)
From source file:edu.wustl.xipHost.xua.STSClientAuthenticationTest.java
@BeforeClass public static void setUpBeforeClass() { System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog"); login = new STSLogin(strURL, trustStoreLoc, trustStorePswd); }
From source file:org.apache.cxf.fediz.integrationtests.federation.FederationTest.java
@BeforeClass public static void init() { System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true"); System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire", "info"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "info"); System.setProperty("org.apache.commons.logging.simplelog.log.org.springframework.webflow", "info"); System.setProperty("org.apache.commons.logging.simplelog.log.org.springframework.security.web", "info"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.cxf.fediz", "info"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.cxf", "info"); idpHttpsPort = System.getProperty("idp.https.port"); // idpHttpsPort = "12345"; Assert.assertNotNull("Property 'idp.https.port' null", idpHttpsPort); rpHttpsPort = System.getProperty("rp.https.port"); Assert.assertNotNull("Property 'rp.https.port' null", rpHttpsPort); initIdp();/*from w w w . j av a 2s .com*/ initRp(); }
From source file:com.opengamma.language.connector.Main.java
/** * Sets a system property./*from ww w . j ava 2 s . c o m*/ * * @param property key of the property to set, never null * @param value value to set, never null */ private static boolean setProperty(final String property, final String value) { try { s_logger.debug("Setting system property {}={}", property, value); System.setProperty(property, value); return true; } catch (final Throwable t) { s_logger.error("Couldn't set property {}={}", property, value); s_logger.warn("Exception thrown", t); return false; } }
From source file:com.streamsets.datacollector.execution.snapshot.TestCacheSnapshotStore.java
@BeforeClass public static void beforeClass() { System.setProperty(RuntimeModule.SDC_PROPERTY_PREFIX + RuntimeInfo.DATA_DIR, "./target/var"); }
From source file:local.config.AxisConfig.java
@Bean public ServletRegistrationBean axisServletRegistrationBean() { System.setProperty(EngineConfigurationFactory.SYSTEM_PROPERTY_NAME, local.axis.EngineConfigurationFactory.class.getName()); AxisServlet servlet = new AxisServlet(); ServletRegistrationBean servletBean = new ServletRegistrationBean(servlet, "/axis/*", "/axis-secured/*"); return servletBean; }
From source file:me.bulat.jivr.core.bootstrap.Bootstrap.java
static void init(String[] args) { ConsoleParser parser = new ConsoleParser(args); if (parser.parse()) { String confFile = parser.getConfFile(); System.setProperty("ext.properties.file", confFile); instance = new Bootstrap(); }//ww w . ja v a 2 s .c o m }
From source file:com.dianping.dpsf.centralstat.test.CentralStatTestCase.java
@AfterClass public static void destroy() throws Exception { System.setProperty(NettyClientManager.DISABLE_DYNAMIC_SERVICE, "false"); PigeonBootStrap.shutdown();//from w w w .ja va2 s . co m }
From source file:com.ge.predix.controller.test.ConfigureEnvironment.java
private static void setPropertyIfNotExist(final String name, final String value) { if (StringUtils.isEmpty(System.getProperty(name))) { System.setProperty(name, value); }/*from w w w . j av a2 s . c om*/ }
From source file:org.apache.camel.example.reportincident.ReportIncidentRoutesClientTest.java
@BeforeClass public static void setUpBeforeClass() { System.setProperty("port", String.valueOf(PORT)); }
From source file:io.fabric8.spring.boot.external.ApplicationExternalTest.java
@BeforeClass public static void setUpClass() throws Exception { System.setProperty("SERVICE1_PROTOCOL", "https"); System.setProperty("SERVICE2_PROTOCOL", "https"); System.setProperty("SERVICE3_PROTOCOL", "https"); System.setProperty(KubernetesHelper.KUBERNETES_NAMESPACE_SYSTEM_PROPERTY, KubernetesHelper.DEFAULT_NAMESPACE); System.setProperty(Config.KUBERNETES_TRUST_CERT_SYSTEM_PROPERTY, "true"); }