langtools/test/jdk/javadoc/tool/sourceOnly/Test.java
changeset 40310 a979695d72a1
parent 35426 374342e56a56
child 40508 74ef30d16fb9
equal deleted inserted replaced
40309:4c9d829b21ea 40310:a979695d72a1
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 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.
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4548768
    26  * @bug 4548768
    27  * @summary Javadoc in JDK 1.4 uses classpath and not just source dir
    27  * @summary Javadoc in JDK 1.4 uses classpath and not just source dir
    28  * @author gafter
    28  * @author gafter
    29  * @ignore API modifications
    29  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc
    30  * @compile p/SourceOnly.java p/NonSource.jasm
    31  * @compile p/SourceOnly.java
    31  * @run main Test
    32  * @run main p.SourceOnly
       
    33  */
    32  */
    34 
    33 
    35 // this file is just a dummy to get the javadoc started.
    34 public class Test {
    36 //
    35     public static void main(String[] args) {
    37 // NOTE: this test only seems to work in separate JVM mode for
    36         // run javadoc on package p
    38 // reasons having something to do with javing tools.jar
    37         if (jdk.javadoc.internal.tool.Main.execute("javadoc", "p.SourceOnly", "p") != 0)
    39 // on the classpath.  Until that is sorted out, these tests
    38             throw new Error();
    40 // must be run in separate VM mode.
    39     }
       
    40 }