[ 
http://jira.codehaus.org/browse/MAXISTOOLS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg moved MOJO-447 to MAXISTOOLS-29:
------------------------------------------------

    Component/s:     (was: axistools)
            Key: MAXISTOOLS-29  (was: MOJO-447)
        Project: Maven 2.x Axis Tools Plugin  (was: Mojo)

> Changes to axistools-maven-plugin for 1.3 support and wrapped arrays
> --------------------------------------------------------------------
>
>                 Key: MAXISTOOLS-29
>                 URL: http://jira.codehaus.org/browse/MAXISTOOLS-29
>             Project: Maven 2.x Axis Tools Plugin
>          Issue Type: Improvement
>            Reporter: Nathan Sowatskey
>            Assignee: Jesse McConnell
>         Attachments: diff.7_July_2006.txt
>
>
> I have made the changes below to support:
>  - wrapped arrays in Axis 1.3. This is true by default as it is a fix for 
> unbounded sequence types, see 
> http://issues.apache.org/jira/browse/AXIS-2460?page=all
>  - Axis 1.3. I am not sure what version number for the plugin to use here, 
> but I think that we need to have concurrent versions of the plugin for 
> different versions of Axis, so the 1.1.3 is meant to show that Axis 1.3 is 
> supported, so Axis 1.2 would be 1.1.2 and Axis 1.4 would be 1.1.4. I don't 
> know whether there is a "proper" way to do this, so what I have done should 
> be seen as illustrative as opposed to authoritative.
> Could someone who knows better than I give me some guidance on what to do 
> next please?
> Many thanks
> Nathan
> svn diff
> Index: src/main/java/org/codehaus/mojo/axistools/WSDL2JavaMojo.java
> ===================================================================
> --- src/main/java/org/codehaus/mojo/axistools/WSDL2JavaMojo.java        
> (revision 2048)
> +++ src/main/java/org/codehaus/mojo/axistools/WSDL2JavaMojo.java        
> (working copy)
> @@ -143,6 +143,12 @@
>      private boolean noWrapped;
>      /**
> +     * @parameter expression="true"
> +     * NJS 6 July 2006
> +     */
> +    private boolean wrapArrays;
> +
> +    /**
>       * @parameter expression="false"
>       */
>      private boolean skeletonDeploy;
> @@ -283,6 +289,7 @@
>          plugin.setNamespaceToPackage( namespaceToPackage );
>          plugin.setNoImports( noImports );
>          plugin.setNoWrapped( noWrapped );
> +        plugin.setWrapArrays( wrapArrays ); //NJS 6 July 2006
>          plugin.setNsExcludes( nsExcludes );
>          plugin.setNsIncludes( nsIncludes );
>          plugin.setPackageSpace( packageSpace );
> Index: 
> src/main/java/org/codehaus/mojo/axistools/wsdl2java/DefaultWSDL2JavaPlugin.java
> ===================================================================
> --- 
> src/main/java/org/codehaus/mojo/axistools/wsdl2java/DefaultWSDL2JavaPlugin.java
>      (revision 2048)
> +++ 
> src/main/java/org/codehaus/mojo/axistools/wsdl2java/DefaultWSDL2JavaPlugin.java
>      (working copy)
> @@ -51,6 +51,7 @@
>   * @author: jesse
>   * @version: $Id:$
>   */
> +
> public class DefaultWSDL2JavaPlugin
>      extends AbstractAxisPlugin
>      implements WSDL2JavaPlugin
> @@ -156,6 +157,12 @@
>      private boolean noWrapped;
>      /**
> +     * @parameter expression="true"
> +     * NJS 6 July 2006
> +     */
> +    private boolean wrapArrays;
> +
> +    /**
>       * @parameter expression="false"
>       */
>      private boolean skeletonDeploy;
> @@ -566,6 +573,11 @@
>              argsList.add( "-W" );
>          }
> +        if ( wrapArrays )
> +        {
> +            argsList.add( "-w" );
> +        }
> +
>          if ( skeletonDeploy )
>          {
>              argsList.add( "-S" );
> @@ -816,8 +828,8 @@
>          emitter.setTypeMappingVersion( typeMappingVersion );
>          emitter.setUsername( username );
>          emitter.setVerbose( verbose );
> -// not in the mojo but needed ?
> -//emitter.setWrapArrays(mojo.is)
> +        // not in the mojo but needed ?
> +        emitter.setWrapArrays(wrapArrays); //NJS 6 July 2006
>          try
>          {
>              emitter.run( wsdlUrl.toExternalForm() );
> @@ -921,6 +933,11 @@
>          this.noWrapped = noWrapped;
>      }
> +    public void setWrapArrays( boolean wrapArrays )
> +    {
> +       this.wrapArrays = wrapArrays;
> +    }
> +
>      public void setSkeletonDeploy( boolean skeletonDeploy )
>      {
>          this.skeletonDeploy = skeletonDeploy;
> Index: 
> src/main/java/org/codehaus/mojo/axistools/wsdl2java/WSDL2JavaPlugin.java
> ===================================================================
> --- src/main/java/org/codehaus/mojo/axistools/wsdl2java/WSDL2JavaPlugin.java  
>   (revision 2048)
> +++ src/main/java/org/codehaus/mojo/axistools/wsdl2java/WSDL2JavaPlugin.java  
>   (working copy)
> @@ -66,6 +66,8 @@
>      void setNoWrapped( boolean noWrapped );
> +    void setWrapArrays( boolean wrapArrays ); //NJS 6 July 2006
> +
>      void setSkeletonDeploy( boolean skeletonDeploy );
>      void setNamespaceToPackage( String namespaceToPackage );
> Index: pom.xml
> ===================================================================
> --- pom.xml     (revision 2048)
> +++ pom.xml     (working copy)
> @@ -8,7 +8,7 @@
>    <artifactId>axistools-maven-plugin</artifactId>
>    <packaging>maven-plugin</packaging>
>    <name>Maven Axis Tools Plugin</name>
> -  <version>1.1-SNAPSHOT</version>
> +  <version>1.1.3-SNAPSHOT</version>
>    <inceptionYear>2005</inceptionYear>
>    <dependencies>
>      <dependency>
> @@ -24,7 +24,7 @@
>      <dependency>
>        <groupId>axis</groupId>
>        <artifactId>axis</artifactId>
> -      <version>1.2.1</version>
> +      <version>1.3</version>
>      </dependency>
>      <dependency>
>        <groupId>plexus</groupId>
> @@ -34,7 +34,7 @@
>      <dependency>
>        <groupId>axis</groupId>
>        <artifactId>axis-jaxrpc</artifactId>
> -      <version>1.2</version>
> +      <version>1.3</version>
>      </dependency>
>      <dependency>
>        <groupId>commons-logging</groupId>
> @@ -54,7 +54,7 @@
>      <dependency>
>        <groupId>axis</groupId>
>        <artifactId>axis-saaj</artifactId>
> -      <version>1.2.1</version>
> +      <version>1.3</version>
>      </dependency>
>    </dependencies>
> </project>

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to