< prev index next >
src/jdk.jpackage/share/classes/jdk/jpackage/internal/AbstractBundler.java
Print this page
*** 51,66 ****
private static final ResourceBundle I18N = ResourceBundle.getBundle(
"jdk.jpackage.internal.resources.MainResources");
public static final BundlerParamInfo<File> IMAGES_ROOT =
new StandardBundlerParam<>(
- I18N.getString("param.images-root.name"),
- I18N.getString("param.images-root.description"),
"imagesRoot",
File.class,
params -> new File(
! StandardBundlerParam.BUILD_ROOT.fetchFrom(params), "images"),
(s, p) -> null);
public InputStream getResourceAsStream(String name) {
return ResourceLocator.class.getResourceAsStream(name);
}
--- 51,64 ----
private static final ResourceBundle I18N = ResourceBundle.getBundle(
"jdk.jpackage.internal.resources.MainResources");
public static final BundlerParamInfo<File> IMAGES_ROOT =
new StandardBundlerParam<>(
"imagesRoot",
File.class,
params -> new File(
! StandardBundlerParam.TEMP_ROOT.fetchFrom(params), "images"),
(s, p) -> null);
public InputStream getResourceAsStream(String name) {
return ResourceLocator.class.getResourceAsStream(name);
}
*** 186,196 ****
@Override
public void cleanup(Map<String, ? super Object> params) {
try {
IOUtils.deleteRecursive(
! StandardBundlerParam.BUILD_ROOT.fetchFrom(params));
} catch (IOException e) {
Log.debug(e.getMessage());
}
}
}
--- 184,194 ----
@Override
public void cleanup(Map<String, ? super Object> params) {
try {
IOUtils.deleteRecursive(
! StandardBundlerParam.TEMP_ROOT.fetchFrom(params));
} catch (IOException e) {
Log.debug(e.getMessage());
}
}
}
< prev index next >