axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r395483 - in /webservices/axis2/trunk/java/modules: codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
Date Thu, 20 Apr 2006 04:56:57 GMT
Author: ajith
Date: Wed Apr 19 21:56:56 2006
New Revision: 395483

URL: http://svn.apache.org/viewcvs?rev=395483&view=rev
Log:
Added ant task support for replacing packages for specific namespaces

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
    webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?rev=395483&r1=395482&r2=395483&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Wed Apr 19 21:56:56 2006
@@ -270,7 +270,7 @@
         // write the test classes
         writeTestClasses();
 
-
+                                                                             
         // write an ant build file
         //Note that ant build is generated only once
         //and that has to happen here only if the

Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java?rev=395483&r1=395482&r2=395483&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
(original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
Wed Apr 19 21:56:56 2006
@@ -48,6 +48,8 @@
     private boolean generateAllClasses = false;
     private boolean unpackClasses = false;
 
+    private String namespaceToPackages = null;
+
     private Path classpath;
 
 
@@ -191,6 +193,13 @@
                 new CommandLineOption(
                         CommandLineOptionConstants.WSDL2JavaConstants.PORT_NAME_OPTION,
                         new String[]{portName}));
+        // set the namespaces
+         optionMap.put(
+                CommandLineOptionConstants.WSDL2JavaConstants.NAME_SPACE_TO_PACKAGE_OPTION,
+                new CommandLineOption(
+                        CommandLineOptionConstants.WSDL2JavaConstants.NAME_SPACE_TO_PACKAGE_OPTION,
+                        new String[]{namespaceToPackages}));
+
         return optionMap;
     }
 
@@ -314,5 +323,13 @@
 
     public void setDatabindingName(String databindingName) {
         this.databindingName = databindingName;
+    }
+
+    public String getNamespaceToPackages() {
+        return namespaceToPackages;
+    }
+
+    public void setNamespaceToPackages(String namespaceToPackages) {
+        this.namespaceToPackages = namespaceToPackages;
     }
 }



Mime
View raw message