8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /** 25 * @test 26 * @bug 8170832 8180447 27 * @summary Arguments passed in environment variable 28 * @build TestHelper 29 * @run main ArgsEnvVar 30 */ 31 import java.io.File; 32 import java.io.IOException; 33 import java.util.ArrayList; 34 import java.util.HashMap; 35 import java.util.List; 36 import java.util.Map; 37 import java.util.regex.Pattern; 38 39 public class ArgsEnvVar extends TestHelper { 40 private static File testJar = null; 41 private static Map<String, String> env = new HashMap<>(); 42 43 private static String JDK_JAVA_OPTIONS = "JDK_JAVA_OPTIONS"; 44 45 static void init() throws IOException { 46 if (testJar != null) { 47 return; | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /** 25 * @test 26 * @bug 8170832 8180447 27 * @summary Arguments passed in environment variable 28 * @modules jdk.compiler 29 * jdk.zipfs 30 * @build TestHelper 31 * @run main ArgsEnvVar 32 */ 33 import java.io.File; 34 import java.io.IOException; 35 import java.util.ArrayList; 36 import java.util.HashMap; 37 import java.util.List; 38 import java.util.Map; 39 import java.util.regex.Pattern; 40 41 public class ArgsEnvVar extends TestHelper { 42 private static File testJar = null; 43 private static Map<String, String> env = new HashMap<>(); 44 45 private static String JDK_JAVA_OPTIONS = "JDK_JAVA_OPTIONS"; 46 47 static void init() throws IOException { 48 if (testJar != null) { 49 return; |