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 */
23
24 /*
25 * @test
26 * @library /test/lib
27 * @modules java.base/jdk.internal.misc
28 * jdk.compiler
29 * jdk.jartool
30 * @build jdk.test.lib.JDKToolFinder jdk.test.lib.Utils
31 * @build MRTestBase
32 * @run testng Basic1
33 */
34
35 import org.testng.annotations.*;
36
37 import java.nio.file.*;
38 import java.util.*;
39
40 public class Basic1 extends MRTestBase {
41
42 @BeforeTest
43 public void setup() throws Throwable {
44 String test = "test01";
45 Path classes = Paths.get("classes");
46
47 Path base = classes.resolve("base");
48 Files.createDirectories(base);
49 Path source = Paths.get(src, "data", test, "base", "version");
50 javac(base, source.resolve("Main.java"), source.resolve("Version.java"));
|
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 */
23
24 /*
25 * @test
26 * @library /test/lib
27 * @modules java.base/jdk.internal.misc
28 * jdk.compiler
29 * jdk.jartool
30 * @build MRTestBase
31 * @run testng Basic1
32 */
33
34 import org.testng.annotations.*;
35
36 import java.nio.file.*;
37 import java.util.*;
38
39 public class Basic1 extends MRTestBase {
40
41 @BeforeTest
42 public void setup() throws Throwable {
43 String test = "test01";
44 Path classes = Paths.get("classes");
45
46 Path base = classes.resolve("base");
47 Files.createDirectories(base);
48 Path source = Paths.get(src, "data", test, "base", "version");
49 javac(base, source.resolve("Main.java"), source.resolve("Version.java"));
|