Skip to content

Commit

Permalink
#213 Support additional values for compress when creating a runtime i…
Browse files Browse the repository at this point in the history
…mage

Fixes #123
  • Loading branch information
aalmiray committed Feb 12, 2024
1 parent 5d63f7b commit 4c39711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -50,7 +50,7 @@ public class CreateRuntimeImage {
private boolean ignoreSigningInformation;
private final String launcher;
private final Log log;
private final Integer compression;
private final String compression;
private final boolean stripDebug;
private final boolean noHeaderFiles;
private final boolean noManPages;
Expand All @@ -59,7 +59,7 @@ public class CreateRuntimeImage {

public CreateRuntimeImage(Set<Path> modulePath, List<String> modules, JarInclusionPolicy jarInclusionPolicy,
Set<Path> dependencies, Path projectJar, String launcherName, String launcherModule,
Path outputDirectory, Integer compression, boolean stripDebug,
Path outputDirectory, String compression, boolean stripDebug,
boolean ignoreSigningInformation, List<String> excludeResourcesPatterns, Log log,
boolean noHeaderFiles, boolean noManPages, boolean bindServices) {
this.modulePath = (modulePath != null ? modulePath : Collections.emptySet());
Expand Down Expand Up @@ -175,7 +175,7 @@ private void runJlink() throws AssertionError {

if (compression != null) {
command.add("--compress");
command.add(compression.toString());
command.add(compression);
}

if (stripDebug) {
Expand Down
Expand Up @@ -76,7 +76,7 @@ public class CreateRuntimeImageMojo extends AbstractMojo {
private Launcher launcher;

@Parameter
private Integer compression;
private String compression;

@Parameter(defaultValue = "false")
private boolean stripDebug;
Expand Down

0 comments on commit 4c39711

Please sign in to comment.