< prev index next >

test/jdk/jigsaw/tools/jlink/CustomPluginTest.java

Print this page




  28 import java.util.ArrayList;
  29 import java.util.List;
  30 import java.util.stream.Collectors;
  31 import java.util.stream.Stream;
  32 
  33 import tests.Helper;
  34 import tests.JImageGenerator;
  35 import tests.Result;
  36 
  37 /*
  38  * @test
  39  * @summary Test custom plugin
  40  * @author Jean-Francois Denise
  41  * @library ../lib
  42  * @modules java.base/jdk.internal.jimage
  43  *          jdk.jdeps/com.sun.tools.classfile
  44  *          jdk.jlink/jdk.tools.jlink
  45  *          jdk.jlink/jdk.tools.jlink.internal
  46  *          jdk.jlink/jdk.tools.jmod
  47  *          jdk.jlink/jdk.tools.jimage

  48  * @build tests.*
  49  * @run main/othervm CustomPluginTest
  50  */
  51 
  52 public class CustomPluginTest {
  53 
  54     public static void main(String[] args) throws Exception {
  55         new CustomPluginTest().test();
  56     }
  57 
  58     private void test() throws Exception {
  59         Helper helper = Helper.newHelper();
  60         if (helper == null) {
  61             System.err.println("Test not run");
  62             return;
  63         }
  64         helper.generateDefaultModules();
  65         Path jmod = registerServices(helper);
  66         Path pluginModulePath = jmod.getParent();
  67 




  28 import java.util.ArrayList;
  29 import java.util.List;
  30 import java.util.stream.Collectors;
  31 import java.util.stream.Stream;
  32 
  33 import tests.Helper;
  34 import tests.JImageGenerator;
  35 import tests.Result;
  36 
  37 /*
  38  * @test
  39  * @summary Test custom plugin
  40  * @author Jean-Francois Denise
  41  * @library ../lib
  42  * @modules java.base/jdk.internal.jimage
  43  *          jdk.jdeps/com.sun.tools.classfile
  44  *          jdk.jlink/jdk.tools.jlink
  45  *          jdk.jlink/jdk.tools.jlink.internal
  46  *          jdk.jlink/jdk.tools.jmod
  47  *          jdk.jlink/jdk.tools.jimage
  48  *          jdk.compiler
  49  * @build tests.*
  50  * @run main/othervm CustomPluginTest
  51  */
  52 
  53 public class CustomPluginTest {
  54 
  55     public static void main(String[] args) throws Exception {
  56         new CustomPluginTest().test();
  57     }
  58 
  59     private void test() throws Exception {
  60         Helper helper = Helper.newHelper();
  61         if (helper == null) {
  62             System.err.println("Test not run");
  63             return;
  64         }
  65         helper.generateDefaultModules();
  66         Path jmod = registerServices(helper);
  67         Path pluginModulePath = jmod.getParent();
  68 


< prev index next >