1
1
/*
2
- * Copyright (c) 2002, 2019 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2002, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
28
28
* get overwritten when the sourcepath is equal to the destination
29
29
* directory.
30
30
* Also test that -docfilessubdirs and -excludedocfilessubdir both work.
31
- * @library ../../lib
31
+ * @library /tools/lib ../../lib
32
32
* @modules jdk.javadoc/jdk.javadoc.internal.tool
33
- * @build javadoc.tester.*
33
+ * @build toolbox.ToolBox javadoc.tester.*
34
34
* @run main TestDocFileDir
35
35
*/
36
36
37
37
import javadoc .tester .JavadocTester ;
38
+ import toolbox .ToolBox ;
38
39
39
40
public class TestDocFileDir extends JavadocTester {
40
41
@@ -43,10 +44,12 @@ public static void main(String... args) throws Exception {
43
44
tester .runTests ();
44
45
}
45
46
47
+ ToolBox tb = new ToolBox ();
48
+
46
49
// Output dir = "", Input dir = ""
47
50
@ Test
48
51
public void test1 () {
49
- copyDir (testSrc ("pkg" ), ". " );
52
+ tb . copyDir (testSrc ("pkg" ), "pkg " );
50
53
setOutputDirectoryCheck (DirectoryCheck .NO_HTML_FILES );
51
54
javadoc ("pkg/C.java" );
52
55
checkExit (Exit .OK );
@@ -58,7 +61,7 @@ public void test1() {
58
61
@ Test
59
62
public void test2 () {
60
63
String outdir = "out2" ;
61
- copyDir (testSrc ("pkg" ), outdir );
64
+ tb . copyDir (testSrc ("pkg" ), outdir + "/pkg" );
62
65
setOutputDirectoryCheck (DirectoryCheck .NO_HTML_FILES );
63
66
javadoc ("-d" , outdir ,
64
67
"-sourcepath" , "blah" + PS + outdir + PS + "blah" ,
0 commit comments