Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/java/rmi/testlibrary/TestParams.java
47360 views
/*1* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/**24*25*/26import java.io.File;2728/**29* Setup static variables to represent properties in test environment.30*/31public class TestParams {3233/** variables that hold value property values */34public static final String testSrc;35public static final String testClasses;3637/** name of default security policy for test JVM */38public static final String defaultPolicy;3940/** name of default security policy for RMID */41public static final String defaultRmidPolicy;4243/** name of default security policy for activation groups */44public static final String defaultGroupPolicy;4546/** name of default security manager */47public static final String defaultSecurityManager;4849/** VM options string */50public static final String testVmOpts;5152/** Java options string */53public static final String testJavaOpts;5455/* Initalize commonly used strings */56static {57testSrc = TestLibrary.getProperty("test.src", ".");58testClasses = TestLibrary.getProperty("test.classes", ".");5960String dp = TestLibrary.getProperty("java.security.policy", null);61if (dp == null) {62dp = testSrc + File.separatorChar + "security.policy";63}64defaultPolicy = dp;6566defaultRmidPolicy =67testSrc + File.separatorChar + "rmid.security.policy";6869defaultGroupPolicy =70testSrc + File.separatorChar + "group.security.policy";7172defaultSecurityManager = TestLibrary.getProperty(73"java.security.manager", "java.lang.SecurityManager");7475testVmOpts = TestLibrary.getProperty("test.vm.opts", "");7677testJavaOpts = TestLibrary.getProperty("test.java.opts", "");78}79}808182