< prev index next >
test/jdk/tools/jpackage/createappimage/JPackageCreateAppImageModuleMainClassErrorTest.java
Print this page
@@ -35,11 +35,10 @@
*/
public class JPackageCreateAppImageModuleMainClassErrorTest {
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 [] CMD1 = {
"--output", OUTPUT,
"--name", "test",
"--module", "com.hello",
@@ -51,11 +50,11 @@
"--module", "com.hello/com.hello.Hello",
"--module-path", "input"};
private static void validate(String buildOutput) throws Exception {
- File outfile = new File(appWorkingDir + File.separator + appOutput);
+ File outfile = new File(appOutput);
int retVal = JPackageHelper.execute(outfile, app);
if (retVal != 0) {
throw new AssertionError(
"Test application exited with error: ");
}
< prev index next >