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 = "green")
+ 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.