khmarbaise closed pull request #1: Added option for generating jlink launcher.
URL: https://github.com/apache/maven-jlink-plugin/pull/1
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java 
b/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
index 4261f1d..ccc82a6 100644
--- a/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
@@ -92,6 +92,14 @@
     @Parameter
     private Integer compress;
 
+    /**
+     * Should the plugin generate a launcher script by means of jlink? The 
command line equivalent is:
+     * <code>--launcher 
&lt;name&gt;=&lt;module&gt;[/&lt;mainclass&gt;]</code>. The valid values for 
the level are:
+     * <code>&lt;name&gt;=&lt;module&gt;[/&lt;mainclass&gt;]</code>.
+     */
+    @Parameter
+    private String launcher;
+
     /**
      * Limit the universe of observable modules. The following gives an 
example of the configuration which can be used
      * in the <code>pom.xml</code> file.
@@ -496,6 +504,11 @@ private Commandline createJLinkCommandLine( 
Collection<String> pathsOfModules, C
             argsFile.println( "--compress" );
             argsFile.println( compress );
         }
+        if ( launcher != null )
+        {
+            argsFile.println( "--launcher" );
+            argsFile.println( launcher );
+        }
 
         if ( disablePlugin != null )
         {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to