Re: svn commit: r1631098 - /maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

2014-10-11 Thread Karl Heinz Marbaise

Hi Robert,

 Hi Karl-Heinz,


did you use the cms[1][2] to change this?
I'd like to change 'rot' to 'red' so all colors are non-german ;)


Sure it should be non-german ...Thanks for finding this...

Fixed in SVN...

Kind regards
Karl-Heinz marbaise


thanks,
Robert

[1] https://cms.apache.org/maven/
[2] http://maven.apache.org/developers/website/deploy-maven-website.html

Op Sat, 11 Oct 2014 20:31:33 +0200 schreef khmarba...@apache.org:


Author: khmarbaise
Date: Sat Oct 11 18:31:32 2014
New Revision: 1631098

URL: http://svn.apache.org/r1631098
Log:
- Added information about enum types for parameters.

Modified:

maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt


Modified:
maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

URL:
http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt?rev=1631098r1=1631097r2=1631098view=diff

==

---
maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt
(original)
+++
maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt
Sat Oct 11 18:31:32 2014
@@ -508,6 +508,44 @@ mvn archetype:generate \
   Once the type for the element is defined, the text in the XML file is
   converted to the appropriate type of object
+*** Enums
+
+  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:
+
++-+
+public enum Color {
+  green,
+  rot,
+  blue
+}
+
+/**
+ * My Enum
+ */
+@Parameter
+private Color myColor;
++-+
+
+  You can also use elements from the enumeration type as
defaultValues like the
+  following:
+
++-+
+public enum Color {
+  green,
+  rot,
+  blue
+}
+
+/**
+ * My Enum
+ */
+@Parameter(defaultValue = green)
+private Color myColor;
++-+
+
+
 *** Arrays
  Array type parameters are configured by specifying the parameter
multiple



-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: svn commit: r1631098 - /maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

2014-10-11 Thread Michael Osipov

Am 2014-10-11 um 21:51 schrieb Robert Scholte:

[...]

maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt
(original)
+++
maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt
Sat Oct 11 18:31:32 2014
@@ -508,6 +508,44 @@ mvn archetype:generate \
   Once the type for the element is defined, the text in the XML file is
   converted to the appropriate type of object
+*** Enums
+
+  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:
+
++-+
+public enum Color {
+  green,
+  rot,
+  blue
+}


In the spirit of convention, Java enum values are always uppercase. 
Willing to change?


Michael


-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: svn commit: r1631098 - /maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

2014-10-11 Thread Karl Heinz Marbaise

Hi,

On 10/11/14 10:00 PM, Michael Osipov wrote:

Am 2014-10-11 um 21:51 schrieb Robert Scholte:

[...]

maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

(original)
+++
maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

Sat Oct 11 18:31:32 2014
@@ -508,6 +508,44 @@ mvn archetype:generate \
   Once the type for the element is defined, the text in the XML file is
   converted to the appropriate type of object
+*** Enums
+
+  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:
+
++-+
+public enum Color {
+  green,
+  rot,
+  blue
+}


In the spirit of convention, Java enum values are always uppercase.
Willing to change?

Michael


Changed of course you are right...

Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org