< prev index next >

jdk/test/java/lang/ClassLoader/getResource/modules/ResourcesTest.java

Print this page

        

*** 54,86 **** */ @BeforeTest public void compileAll() throws Exception { boolean compiled; ! // javac -modulesource mods -d mods src/** compiled = CompilerUtils .compile(SRC_DIR, MODS_DIR, ! "-modulesourcepath", SRC_DIR.toString()); assertTrue(compiled); ! // javac -mp mods -d classes Main.java compiled = CompilerUtils .compile(Paths.get(TEST_SRC, "Main.java"), CLASSES_DIR, ! "-mp", MODS_DIR.toString(), ! "-addmods", "m1,m2,m3"); assertTrue(compiled); } /** * Run the test */ public void runTest() throws Exception { int exitValue ! = executeTestJava("-mp", MODS_DIR.toString(), ! "-addmods", "m1,m2,m3", "-cp", CLASSES_DIR.toString(), "Main") .outputTo(System.out) .errorTo(System.out) .getExitValue(); --- 54,86 ---- */ @BeforeTest public void compileAll() throws Exception { boolean compiled; ! // javac --module-source-path mods -d mods src/** compiled = CompilerUtils .compile(SRC_DIR, MODS_DIR, ! "--module-source-path", SRC_DIR.toString()); assertTrue(compiled); ! // javac --module-path mods -d classes Main.java compiled = CompilerUtils .compile(Paths.get(TEST_SRC, "Main.java"), CLASSES_DIR, ! "--module-path", MODS_DIR.toString(), ! "--add-modules", "m1,m2,m3"); assertTrue(compiled); } /** * Run the test */ public void runTest() throws Exception { int exitValue ! = executeTestJava("--module-path", MODS_DIR.toString(), ! "--add-modules", "m1,m2,m3", "-cp", CLASSES_DIR.toString(), "Main") .outputTo(System.out) .errorTo(System.out) .getExitValue();
< prev index next >