equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
66 public static void main(String[] args) throws Exception { |
66 public static void main(String[] args) throws Exception { |
67 new StripDebugPluginTest().test(); |
67 new StripDebugPluginTest().test(); |
68 } |
68 } |
69 |
69 |
70 public void test() throws Exception { |
70 public void test() throws Exception { |
71 // JPRT not yet ready for jmods |
|
72 Helper helper = Helper.newHelper(); |
71 Helper helper = Helper.newHelper(); |
73 if (helper == null) { |
72 if (helper == null) { |
|
73 // Skip test if the jmods directory is missing (e.g. exploded image) |
74 System.err.println("Test not run, NO jmods directory"); |
74 System.err.println("Test not run, NO jmods directory"); |
75 return; |
75 return; |
76 } |
76 } |
77 |
77 |
78 List<String> classes = Arrays.asList("toto.Main", "toto.com.foo.bar.X"); |
78 List<String> classes = Arrays.asList("toto.Main", "toto.com.foo.bar.X"); |