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 * @summary jpackage create image runtime test 27 * @library ../helpers 28 * @build JPackageHelper 29 * @build JPackagePath 30 * @build RuntimeBase 31 * @modules jdk.jpackage 32 * @run main/othervm -Xmx512m RuntimeTest 33 */ 34 public class RuntimeTest { 35 private static final String OUTPUT = "output"; 36 private static final String [] CMD = { 37 "--runtime-image", "runtime", 38 "--input", "input", 39 "--output", OUTPUT, 40 "--name", "test", 41 "--main-jar", "hello.jar", 42 "--main-class", "Hello", 43 }; 44 45 public static void main(String[] args) throws Exception { 46 JPackageHelper.createHelloImageJar(); 47 JPackageHelper.createRuntime(); 48 RuntimeBase.testCreateAppImage(CMD); 49 JPackageHelper.deleteOutputFolder(OUTPUT); 50 RuntimeBase.testCreateAppImageToolProvider(CMD); 51 } 52 53 } | 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 * @summary jpackage create image runtime test 27 * @library ../helpers 28 * @build JPackageHelper 29 * @build JPackagePath 30 * @build RuntimeBase 31 * @modules jdk.jpackage 32 * @run main/othervm -Xmx512m RuntimeTest 33 */ 34 public class RuntimeTest { 35 private static final String OUTPUT = "output"; 36 private static final String [] CMD = { 37 "--package-type", "app-image", 38 "--package-type", "app-image", 39 "--runtime-image", "runtime", 40 "--input", "input", 41 "--output", OUTPUT, 42 "--name", "test", 43 "--main-jar", "hello.jar", 44 "--main-class", "Hello", 45 }; 46 47 public static void main(String[] args) throws Exception { 48 JPackageHelper.createHelloImageJar(); 49 JPackageHelper.createRuntime(); 50 RuntimeBase.testCreateAppImage(CMD); 51 JPackageHelper.deleteOutputFolder(OUTPUT); 52 RuntimeBase.testCreateAppImageToolProvider(CMD); 53 } 54 55 } |