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/02 23:54:13 UTC
svn commit: r1807108 -
/maven/plugins/trunk/maven-jmod-plugin/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java
Author: khmarbaise
Date: Sat Sep 2 23:54:13 2017
New Revision: 1807108
URL: http://svn.apache.org/viewvc?rev=1807108&view=rev
Log:
Improved parameter docs.
Modified:
maven/plugins/trunk/maven-jmod-plugin/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java
Modified: maven/plugins/trunk/maven-jmod-plugin/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jmod-plugin/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java?rev=1807108&r1=1807107&r2=1807108&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jmod-plugin/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java (original)
+++ maven/plugins/trunk/maven-jmod-plugin/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java Sat Sep 2 23:54:13 2017
@@ -37,7 +37,7 @@ import org.codehaus.plexus.util.cli.Comm
/**
* The <code>create</code> goal is intended to create <code>jmod</code> files which can be used for later linking via
* <code>maven-jlink-plugin</code>. The JMod files can not be used as usual dependencies on the classpath only in
- * relationship with maven-jlink-plugin.
+ * relationship with maven-jlink-plugin.
*
* @author Karl Heinz Marbaise <a href="mailto:khmarbaise@apache.org">khmarbaise@apache.org</a>
*/
@@ -51,7 +51,7 @@ public class JModCreateMojo
/**
* <code>--class-path <path></code> Application jar files/directory containing classes. Specifies a class path
- * whose content will be copied into the resulting JMOD file.
+ * whose content will be copied into the resulting <code>jmod</code> file.
*/
@Parameter( defaultValue = "${project.build.outputDirectory}" )
private List<String> classPath;
@@ -68,7 +68,10 @@ public class JModCreateMojo
* .
* </cmds>
* </pre>
- *
+ * <p>
+ * All files from those directories will be copied into the resulting directory <code>bin</code> within the jmod
+ * file.
+ * </p>
* <code>JMod</code> command line equivalent: <code>--cmds <path></code>.
*/
@Parameter
@@ -89,7 +92,10 @@ public class JModCreateMojo
* .
* </configs>
* </pre>
- *
+ * <p>
+ * All files from those directories will be copied into the resulting directory <code>config</code> within the jmod
+ * file.
+ * </p>
* jmod command line equivalent: <code>--config <path></code>.
*/
@Parameter
@@ -129,6 +135,10 @@ public class JModCreateMojo
* .
* </libs>
* </pre>
+ * <p>
+ * All files from those directories will be copied into the resulting directory <code>lib</code> within the jmod
+ * file.
+ * </p>
*/
@Parameter
private List<String> libs;
@@ -167,7 +177,10 @@ public class JModCreateMojo
* .
* </headerFiles>
* </pre>
- *
+ * <p>
+ * All files from those directories will be copied into the resulting directory <code>includes</code> within the
+ * jmod file.
+ * </p>
* jmod command line equivalent <code>--header-files <path></code> TODO: Define default location.
*/
@Parameter
@@ -187,7 +200,10 @@ public class JModCreateMojo
* .
* </manPages>
* </pre>
- *
+ * <p>
+ * All files from those directories will be copied into the resulting directory <code>man</code> within the jmod
+ * file.
+ * </p>
* jmod command line equivalent <code>--man-pages <path></code> TODO: Define default location.
*/
@Parameter
@@ -213,7 +229,10 @@ public class JModCreateMojo
* .
* </legalNotices>
* </pre>
- *
+ * <p>
+ * All files from those directories will be copied into the resulting directory <code>legal</code> within the jmod
+ * file.
+ * </p>
* jmod command line equivalent <code>--legal-notices <path></code> TODO: Define default location.
*/
@Parameter
@@ -248,6 +267,12 @@ public class JModCreateMojo
throws MojoExecutionException, MojoFailureException
{
+ // Make sure module path exists.
+ if ( !modulePath.exists() )
+ {
+ modulePath.mkdirs();
+ }
+
failIfParametersAreNotInTheirValidValueRanges();
String jModExecutable;