< prev index next >

test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java

Print this page
rev 11832 : 8078896: Add @modules as needed to the jdk_svc tests
Reviewed-by: alanb, mchung
   1 /*
   2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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  */


  24 import java.io.File;
  25 import java.io.IOException;
  26 import java.nio.file.FileSystem;
  27 import java.nio.file.FileSystems;
  28 import java.nio.file.Files;
  29 import java.nio.file.LinkOption;
  30 import java.nio.file.Path;
  31 import java.nio.file.StandardCopyOption;
  32 import java.nio.file.attribute.PosixFilePermission;
  33 import java.util.HashSet;
  34 import java.util.Set;
  35 import java.util.concurrent.TimeUnit;
  36 import java.util.concurrent.atomic.AtomicReference;
  37 
  38 import jdk.testlibrary.ProcessTools;
  39 
  40 /**
  41  * @test
  42  * @bug 6434402 8004926
  43  * @library /lib/testlibrary


  44  * @build jdk.testlibrary.*
  45  * @build TestManager TestApplication CustomLauncherTest
  46  * @run main/othervm CustomLauncherTest
  47  * @author Jaroslav Bachorik
  48  */
  49 public class CustomLauncherTest {
  50     private static final  String TEST_CLASSPATH = System.getProperty("test.class.path");
  51     private static final  String TEST_JDK = System.getProperty("test.jdk");
  52     private static final  String WORK_DIR = System.getProperty("user.dir");
  53 
  54     private static final  String TEST_SRC = System.getProperty("test.src");
  55     private static final  String OSNAME = System.getProperty("os.name");
  56     private static final  String ARCH;
  57     private static final  String LIBARCH;
  58 
  59     static {
  60         // magic with os.arch
  61         String osarch = System.getProperty("os.arch");
  62         switch (osarch) {
  63             case "i386":


   1 /*
   2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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  */


  24 import java.io.File;
  25 import java.io.IOException;
  26 import java.nio.file.FileSystem;
  27 import java.nio.file.FileSystems;
  28 import java.nio.file.Files;
  29 import java.nio.file.LinkOption;
  30 import java.nio.file.Path;
  31 import java.nio.file.StandardCopyOption;
  32 import java.nio.file.attribute.PosixFilePermission;
  33 import java.util.HashSet;
  34 import java.util.Set;
  35 import java.util.concurrent.TimeUnit;
  36 import java.util.concurrent.atomic.AtomicReference;
  37 
  38 import jdk.testlibrary.ProcessTools;
  39 
  40 /**
  41  * @test
  42  * @bug 6434402 8004926
  43  * @library /lib/testlibrary
  44  * @modules java.management/sun.management
  45  *          java.management
  46  * @build jdk.testlibrary.*
  47  * @build TestManager TestApplication CustomLauncherTest
  48  * @run main/othervm CustomLauncherTest
  49  * @author Jaroslav Bachorik
  50  */
  51 public class CustomLauncherTest {
  52     private static final  String TEST_CLASSPATH = System.getProperty("test.class.path");
  53     private static final  String TEST_JDK = System.getProperty("test.jdk");
  54     private static final  String WORK_DIR = System.getProperty("user.dir");
  55 
  56     private static final  String TEST_SRC = System.getProperty("test.src");
  57     private static final  String OSNAME = System.getProperty("os.name");
  58     private static final  String ARCH;
  59     private static final  String LIBARCH;
  60 
  61     static {
  62         // magic with os.arch
  63         String osarch = System.getProperty("os.arch");
  64         switch (osarch) {
  65             case "i386":


< prev index next >