This is an automated email from the ASF dual-hosted git repository. rfscholte pushed a commit to branch JMOD-20 in repository https://gitbox.apache.org/repos/asf/maven-jmod-plugin.git
commit 02d1c73ecd44027fc2edbd3cd322e93e72c6dc11 Author: Andre Tadeu de Carvalho <[email protected]> AuthorDate: Tue Dec 11 23:08:21 2018 -0200 set jmod --main-class argument if it is set. --- src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java b/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java index b268372..a977e81 100644 --- a/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java +++ b/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java @@ -587,6 +587,12 @@ public class JModCreateMojo argsFile.println( getPlatformSeparatedList( configList ) ); } + if ( mainClass != null && !mainClass.isBlank() ) + { + argsFile.println( "--main-class" ); + argsFile.println( mainClass ); + } + List<String> cmdsList = handleConfigurationListWithDefault( cmds, DEFAULT_CMD_DIRECTORY ); if ( !cmdsList.isEmpty() ) {
