equal
deleted
inserted
replaced
74 // override classpath to avoid stuff jtreg might have put on papth |
74 // override classpath to avoid stuff jtreg might have put on papth |
75 args.add("-classpath"); |
75 args.add("-classpath"); |
76 args.add("."); |
76 args.add("."); |
77 } |
77 } |
78 |
78 |
79 // use a very simple bootclasspath to avoid stuff jtreg might have put on path |
|
80 File javaHome = new File(System.getProperty("java.home")); |
|
81 File rt_jar = new File(javaHome, "lib/rt.jar"); |
|
82 if (!rt_jar.exists()) |
|
83 throw new Exception("rt.jar not found"); |
|
84 args.add("-bootclasspath"); |
|
85 args.add(rt_jar.getPath()); |
|
86 |
|
87 args.add(new File(testSrc, "Test.java").getPath()); |
79 args.add(new File(testSrc, "Test.java").getPath()); |
88 System.out.println("javadoc: " + args); |
80 System.out.println("javadoc: " + args); |
89 |
81 |
90 int rc = com.sun.tools.javadoc.Main.execute(args.toArray(new String[args.size()])); |
82 int rc = com.sun.tools.javadoc.Main.execute(args.toArray(new String[args.size()])); |
91 if (rc != 0) |
83 if (rc != 0) |