equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, 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. |
27 * @summary test support for output directory options -d and -s |
27 * @summary test support for output directory options -d and -s |
28 * @modules jdk.compiler/com.sun.tools.javac.api |
28 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * jdk.compiler/com.sun.tools.javac.file |
29 * jdk.compiler/com.sun.tools.javac.file |
30 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.compiler/com.sun.tools.javac.main |
31 * jdk.compiler/com.sun.tools.javac.util |
31 * jdk.compiler/com.sun.tools.javac.util |
32 * @build Tester |
32 * @build OptionModesTester |
33 * @run main OutputDirTest |
33 * @run main OutputDirTest |
34 */ |
34 */ |
35 |
35 |
36 import com.sun.tools.javac.main.Main; |
36 import com.sun.tools.javac.main.Main; |
37 import java.io.IOException; |
37 import java.io.IOException; |
38 |
38 |
39 public class OutputDirTest extends Tester { |
39 public class OutputDirTest extends OptionModesTester { |
40 public static void main(String... args) throws Exception { |
40 public static void main(String... args) throws Exception { |
41 OutputDirTest t = new OutputDirTest(); |
41 OutputDirTest t = new OutputDirTest(); |
42 t.writeFile("src/C.java", "class C { }"); |
42 t.writeFile("src/C.java", "class C { }"); |
43 t.runTests(); |
43 t.runTests(); |
44 } |
44 } |