You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2017/09/18 17:23:00 UTC

svn commit: r1808750 - /maven/plugins/trunk/maven-jlink-plugin/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java

Author: khmarbaise
Date: Mon Sep 18 17:22:59 2017
New Revision: 1808750

URL: http://svn.apache.org/viewvc?rev=1808750&view=rev
Log:
[MJLINK-5] Parameter 'compression' is wrong. It is 'compress'
 o Changed the wrong parameter for commandline from compression
   into the correct on compress. Change the name of the parameter
   accordingly.

Modified:
    maven/plugins/trunk/maven-jlink-plugin/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java

Modified: maven/plugins/trunk/maven-jlink-plugin/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jlink-plugin/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java?rev=1808750&r1=1808749&r2=1808750&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jlink-plugin/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java (original)
+++ maven/plugins/trunk/maven-jlink-plugin/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java Mon Sep 18 17:22:59 2017
@@ -99,7 +99,7 @@ public class JLinkMojo
      * <code>-c, --compress=level&gt;</code>. The valid values for the level are: <code>0, 1, 2</code>.
      */
     @Parameter
-    private Integer compression;
+    private Integer compress;
 
     /**
      * Limit the universe of observable modules. The following gives an example of the configuration which can be used
@@ -447,10 +447,10 @@ public class JLinkMojo
     private void failIfParametersAreNotInTheirValidValueRanges()
         throws MojoFailureException
     {
-        if ( compression != null && ( compression < 0 || compression > 2 ) )
+        if ( compress != null && ( compress < 0 || compress > 2 ) )
         {
             String message =
-                "The given compression parameters " + compression + " is not in the valid value range from 0..2";
+                "The given compress parameters " + compress + " is not in the valid value range from 0..2";
             getLog().error( message );
             throw new MojoFailureException( message );
         }
@@ -517,10 +517,10 @@ public class JLinkMojo
         {
             argsFile.println( "--ignore-signing-information" );
         }
-        if ( compression != null )
+        if ( compress != null )
         {
-            argsFile.println( "--compression" );
-            argsFile.println( compression );
+            argsFile.println( "--compress" );
+            argsFile.println( compress );
         }
 
         if ( disablePlugin != null )