author | akulyakh |
Thu, 21 May 2015 11:41:04 -0700 | |
changeset 30730 | d3ce7619db2c |
parent 16799 | fbe4d27b8791 |
permissions | -rw-r--r-- |
16799
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
1 |
/* |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
16799
diff
changeset
|
2 |
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
16799
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
4 |
* |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
8 |
* |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
13 |
* accompanied this code). |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
14 |
* |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
18 |
* |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
21 |
* questions. |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
22 |
*/ |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
23 |
|
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
24 |
/* |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
25 |
* @test |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
26 |
* @bug 8006346 |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
27 |
* @summary doclint should make allowance for headers generated by standard doclet |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
16799
diff
changeset
|
28 |
* @modules jdk.javadoc |
16799
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
29 |
*/ |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
30 |
|
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
31 |
import java.io.File; |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
32 |
|
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
33 |
/** |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
34 |
* <h3> Header </h3> |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
35 |
*/ |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
36 |
public class ImplicitHeadersTest { |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
37 |
public static void main(String... args) { |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
38 |
File testSrc = new File(System.getProperty("test.src")); |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
39 |
File testFile = new File(testSrc, ImplicitHeadersTest.class.getSimpleName() + ".java"); |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
40 |
String[] javadocArgs = { "-d", "out", testFile.getPath() }; |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
41 |
int rc = com.sun.tools.javadoc.Main.execute(javadocArgs); |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
42 |
if (rc != 0) |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
43 |
throw new Error("unexpected exit: rc=" + rc); |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
44 |
} |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
45 |
} |
fbe4d27b8791
8006346: doclint should make allowance for headers generated by standard doclet
jjg
parents:
diff
changeset
|
46 |