< prev index next >

test/tools/jmod/JmodTest.java

Print this page

        

*** 583,593 **** public void testTmpFileAlreadyExists() throws IOException { // Implementation detail: jmod tool creates <jmod-file>.tmp // Ensure that there are no problems if existing Path jmod = MODS_DIR.resolve("testTmpFileAlreadyExists.jmod"); ! Path tmp = MODS_DIR.resolve("testTmpFileAlreadyExists.jmod.tmp"); FileUtils.deleteFileIfExistsWithRetry(jmod); FileUtils.deleteFileIfExistsWithRetry(tmp); Files.createFile(tmp); String cp = EXPLODED_DIR.resolve("foo").resolve("classes").toString(); --- 583,594 ---- public void testTmpFileAlreadyExists() throws IOException { // Implementation detail: jmod tool creates <jmod-file>.tmp // Ensure that there are no problems if existing Path jmod = MODS_DIR.resolve("testTmpFileAlreadyExists.jmod"); ! Path tmpdir = Paths.get(System.getProperty("java.io.tmpdir")); ! Path tmp = tmpdir.resolve("testTmpFileAlreadyExists.jmod.tmp"); FileUtils.deleteFileIfExistsWithRetry(jmod); FileUtils.deleteFileIfExistsWithRetry(tmp); Files.createFile(tmp); String cp = EXPLODED_DIR.resolve("foo").resolve("classes").toString();
< prev index next >