You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/01/18 12:21:43 UTC
[maven-jmod-plugin] 01/06: set jmod --main-class argument if it is
set.
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 <an...@gmail.com>
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() )
{