[ http://jira.codehaus.org/browse/MXMLBEANS-10?page=all ]
Brett Porter moved MOJO-93 to MXMLBEANS-10:
-------------------------------------------
Fix Version: (was: 2.0)
2.0
Component: (was: xmlbeans)
Key: MXMLBEANS-10 (was: MOJO-93)
Project: Maven 2.x Xmlbeans Plugin (was: Mojo)
> There is no javaSource parameter.
> ---------------------------------
>
> Key: MXMLBEANS-10
> URL: http://jira.codehaus.org/browse/MXMLBEANS-10
> Project: Maven 2.x Xmlbeans Plugin
> Type: Bug
> Environment: All
> Reporter: Rafal Rusin
> Assignee: Corridor Software Developer
> Fix For: 2.0
>
>
> There no possibility to set javaSource parameter. In xmlbeans-2.0.0 one can
> generate methods set...List by setting javaSource=1.5.
> Here's a diff with modifications:
> Index: src/main/java/org/codehaus/mojo/xmlbeans/ParameterAdapter.java
> ===================================================================
> --- src/main/java/org/codehaus/mojo/xmlbeans/ParameterAdapter.java
> (wersja 789)
> +++ src/main/java/org/codehaus/mojo/xmlbeans/ParameterAdapter.java
> (kopia robocza)
> @@ -71,6 +71,7 @@
> params.setRepackage(properties.getRepackage());
> params.setExtensions(properties.getExtensions());
> params.setMdefNamespaces(properties.getMdefNamespaces());
> + params.setJavaSource(properties.getJavaSource());
> return params;
> }
> }
> Index: src/main/java/org/codehaus/mojo/xmlbeans/PluginProperties.java
> ===================================================================
> --- src/main/java/org/codehaus/mojo/xmlbeans/PluginProperties.java
> (wersja 789)
> +++ src/main/java/org/codehaus/mojo/xmlbeans/PluginProperties.java
> (kopia robocza)
> @@ -227,6 +227,8 @@
> */
> boolean isJaxb();
>
> + String getJavaSource();
> +
> /**
> * Validate all of the fields for proper usage.
> *
> Index: src/main/java/org/codehaus/mojo/xmlbeans/AbstractXmlBeansPlugin.java
> ===================================================================
> --- src/main/java/org/codehaus/mojo/xmlbeans/AbstractXmlBeansPlugin.java
> (wersja 789)
> +++ src/main/java/org/codehaus/mojo/xmlbeans/AbstractXmlBeansPlugin.java
> (kopia robocza)
> @@ -215,6 +215,11 @@
> private List pluginArtifacts;
>
> /**
> + * @parameter
> + */
> + private String javaSource;
> +
> + /**
> * The repository for libraries we depend on.
> *
> * @parameter expression="${localRepository}"
> @@ -738,6 +743,10 @@
> return verbose;
> }
>
> + public final String getJavaSource() {
> + return javaSource;
> + }
> +
> /**
> * No validation beyond those done by the maven plugin occur at this time.
> *
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira