< prev index next >

test/jdk/tools/jpackage/helpers/jdk/jpackage/test/JPackageCommand.java

Print this page

        

*** 722,731 **** --- 722,751 ---- } return ThrowingFunction.toFunction(CfgFile::readFromFile).apply( appLauncherCfgPath(launcherName)); } + public List<String> readRuntimeReleaseFile() { + return readRuntimeReleaseFile(null); + } + + public List<String> readRuntimeReleaseFile(String launcherName) { + verifyIsOfType(PackageType.IMAGE); + if (isRuntime()) { + return null; + } + if (launcherName == null) { + launcherName = name(); + } + Path release = appRuntimeDirectory().resolve("release"); + try { + return Files.readAllLines(release); + } catch (IOException ioe) { + throw new RuntimeException(ioe); + } + } + public static String escapeAndJoin(String... args) { return escapeAndJoin(List.of(args)); } public static String escapeAndJoin(List<String> args) {
< prev index next >