langtools/test/tools/javac/ExtDirs/ExtDirTest.java
changeset 36526 3b41f1c69604
parent 30730 d3ce7619db2c
child 36778 e04318f39f92
equal deleted inserted replaced
36525:4caf88912b7f 36526:3b41f1c69604
    27  * @summary Test that '.jar' files in -extdirs are found.
    27  * @summary Test that '.jar' files in -extdirs are found.
    28  * @library /tools/lib
    28  * @library /tools/lib
    29  * @modules jdk.compiler/com.sun.tools.javac.api
    29  * @modules jdk.compiler/com.sun.tools.javac.api
    30  *          jdk.compiler/com.sun.tools.javac.file
    30  *          jdk.compiler/com.sun.tools.javac.file
    31  *          jdk.compiler/com.sun.tools.javac.main
    31  *          jdk.compiler/com.sun.tools.javac.main
       
    32  *          jdk.jdeps/com.sun.tools.javap
    32  * @build ToolBox
    33  * @build ToolBox
    33  * @run main ExtDirTest
    34  * @run main ExtDirTest
    34  */
    35  */
    35 
    36 
    36 import java.io.File;
    37 import java.io.File;
   148     }
   149     }
   149 
   150 
   150     void compileWithExtDirs() throws Exception {
   151     void compileWithExtDirs() throws Exception {
   151         tb.new JavacTask()
   152         tb.new JavacTask()
   152                 .outdir(".")
   153                 .outdir(".")
   153                 .options("-extdirs", "ext1")
   154                 .options("-source", "8",
       
   155                         "-extdirs", "ext1")
   154                 .sources(ExtDirTest_1Src)
   156                 .sources(ExtDirTest_1Src)
   155                 .run()
   157                 .run()
   156                 .writeAll();
   158                 .writeAll();
   157 
   159 
   158         tb.new JavacTask()
   160         tb.new JavacTask()
   159                 .outdir(".")
   161                 .outdir(".")
   160                 .options("-extdirs", "ext1" + File.pathSeparator + "ext2")
   162                 .options("-source", "8",
       
   163                         "-extdirs", "ext1" + File.pathSeparator + "ext2")
   161                 .sources(ExtDirTest_2Src)
   164                 .sources(ExtDirTest_2Src)
   162                 .run();
   165                 .run()
       
   166                 .writeAll();
   163 
   167 
   164         tb.new JavacTask()
   168         tb.new JavacTask()
   165                 .outdir(".")
   169                 .outdir(".")
   166                 .options("-extdirs", "ext3")
   170                 .options("-source", "8",
       
   171                         "-extdirs", "ext3")
   167                 .sources(ExtDirTest_3Src)
   172                 .sources(ExtDirTest_3Src)
   168                 .run();
   173                 .run()
       
   174                 .writeAll();
   169     }
   175     }
   170 
   176 
   171 }
   177 }