You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by bu...@apache.org on 2014/10/11 20:32:19 UTC

svn commit: r925410 - in /websites/staging/maven/trunk/content: ./ guides/plugin/guide-java-plugin-development.html maven-site-1.0-site.jar

Author: buildbot
Date: Sat Oct 11 18:32:19 2014
New Revision: 925410

Log:
Staging update by buildbot for maven

Modified:
    websites/staging/maven/trunk/content/   (props changed)
    websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html
    websites/staging/maven/trunk/content/maven-site-1.0-site.jar

Propchange: websites/staging/maven/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Oct 11 18:32:19 2014
@@ -1 +1 @@
-1631041
+1631098

Modified: websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html
==============================================================================
--- websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html (original)
+++ websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html Sat Oct 11 18:32:19 2014
@@ -532,6 +532,34 @@ public class GreetingMojo extends Abstra
 <li>For arrays, use the component type of the array (for example, use <tt>String</tt> for a <tt>String[]</tt> parameter); for collections and maps, use the class specified in the mojo configuration for the collection or map; use <tt>String</tt> for entries in a collection and values in a map</li></ol>
 <p>Once the type for the element is defined, the text in the XML file is converted to the appropriate type of object</p>
 <div class="section">
+<h5><a name="Enums"></a>Enums</h5>
+<p>Enumeration type parameters can also be used. First you need to define your enumeration type and afterwards you can use the enumeration type in the parameter definition:</p>
+<div class="source">
+<pre>    public enum Color {
+      green,
+      rot,
+      blue
+    }
+
+    /**
+     * My Enum
+     */
+    @Parameter
+    private Color myColor;</pre></div>
+<p>You can also use elements from the enumeration type as defaultValues like the following:</p>
+<div class="source">
+<pre>    public enum Color {
+      green,
+      rot,
+      blue
+    }
+
+    /**
+     * My Enum
+     */
+    @Parameter(defaultValue = &quot;green&quot;)
+    private Color myColor;</pre></div></div>
+<div class="section">
 <h5><a name="Arrays"></a>Arrays</h5>
 <p>Array type parameters are configured by specifying the parameter multiple times. Example:</p>
 <div class="source">

Modified: websites/staging/maven/trunk/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.