< prev index next >
test/jdk/tools/jpackage/createappimage/JPackageCreateAppImageMainClassAttributeTest.java
Print this page
*** 35,45 ****
*/
public class JPackageCreateAppImageMainClassAttributeTest {
private static final String OUTPUT = "output";
private static final String app = JPackagePath.getApp();
private static final String appOutput = JPackagePath.getAppOutputFile();
- private static final String appWorkingDir = JPackagePath.getAppWorkingDir();
private static final String[] CMD = {
"--input", "input",
"--output", OUTPUT,
"--name", "test",
--- 35,44 ----
*** 65,75 ****
if (retVal != 0) {
throw new AssertionError(
"Test application exited with error: " + retVal);
}
! File outfile = new File(appWorkingDir + File.separator + appOutput);
if (!outfile.exists()) {
throw new AssertionError(appOutput + " was not created");
}
String output = Files.readString(outfile.toPath());
--- 64,74 ----
if (retVal != 0) {
throw new AssertionError(
"Test application exited with error: " + retVal);
}
! File outfile = new File(appOutput);
if (!outfile.exists()) {
throw new AssertionError(appOutput + " was not created");
}
String output = Files.readString(outfile.toPath());
< prev index next >