langtools/test/tools/javac/modules/NPECompilingModuleInfoTest.java
changeset 36778 e04318f39f92
parent 36776 5e260fa5208a
child 37758 3ecf9b414e05
--- a/langtools/test/tools/javac/modules/NPECompilingModuleInfoTest.java	Thu Mar 31 14:56:33 2016 -0700
+++ b/langtools/test/tools/javac/modules/NPECompilingModuleInfoTest.java	Thu Mar 31 15:20:50 2016 -0700
@@ -29,14 +29,15 @@
  * @modules
  *      jdk.compiler/com.sun.tools.javac.api
  *      jdk.compiler/com.sun.tools.javac.main
- *      jdk.jdeps/com.sun.tools.javap
- * @build ToolBox ModuleTestBase
+ * @build toolbox.ToolBox toolbox.JavacTask ModuleTestBase
  * @run main NPECompilingModuleInfoTest
  */
 
 import java.nio.file.Path;
 
-import com.sun.source.util.JavacTask;
+import toolbox.JavacTask;
+import toolbox.Task;
+import toolbox.ToolBox;
 
 public class NPECompilingModuleInfoTest extends ModuleTestBase {
     public static void main(String... args) throws Exception {
@@ -53,11 +54,11 @@
         Path classes = base.resolve("classes");
         tb.createDirectories(classes);
 
-        tb.new JavacTask()
+        new JavacTask(tb)
                 .outdir(classes)
                 .files(findJavaFiles(mod))
                 .run()
                 .writeAll()
-                .getOutputLines(ToolBox.OutputKind.DIRECT);
+                .getOutputLines(Task.OutputKind.DIRECT);
     }
 }