jdk/test/tools/launcher/MiscTests.java
changeset 43248 5e15de85a1a0
parent 42693 6645de32a866
child 45944 882cea808912
equal deleted inserted replaced
43247:8d242299a219 43248:5e15de85a1a0
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2017, 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.
    78         scratch.add("}");
    78         scratch.add("}");
    79         scratch.add("}");
    79         scratch.add("}");
    80         createFile(new File(mainClass + ".java"), scratch);
    80         createFile(new File(mainClass + ".java"), scratch);
    81 
    81 
    82         compile(mainClass + ".java",
    82         compile(mainClass + ".java",
    83                 "--add-modules=jdk.crypto.token",
    83                 "--add-modules=jdk.crypto.cryptoki",
    84                 "--add-exports=jdk.crypto.token/sun.security.pkcs11=ALL-UNNAMED");
    84                 "--add-exports=jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED");
    85 
    85 
    86         File testJar = new File("Foo.jar");
    86         File testJar = new File("Foo.jar");
    87         testJar.delete();
    87         testJar.delete();
    88         String jarArgs[] = {
    88         String jarArgs[] = {
    89             (debug) ? "cvfe" : "cfe",
    89             (debug) ? "cvfe" : "cfe",