You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by am...@apache.org on 2007/04/18 13:09:51 UTC

svn commit: r529978 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java

Author: amilas
Date: Wed Apr 18 04:09:49 2007
New Revision: 529978

URL: http://svn.apache.org/viewvc?view=rev&rev=529978
Log:
set the async and sync flags on only if one is specified. default is both on

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java?view=diff&rev=529978&r1=529977&r2=529978
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java Wed Apr 18 04:09:49 2007
@@ -69,11 +69,11 @@
         boolean syncFlagPresent =
                 (loadOption(WSDL2JavaConstants.CODEGEN_SYNC_ONLY_OPTION,
                             WSDL2JavaConstants.CODEGEN_SYNC_ONLY_OPTION_LONG, optionMap) != null);
-        if (asyncFlagPresent) {
+        if (asyncFlagPresent && !syncFlagPresent) {
             config.setAsyncOn(true);
             config.setSyncOn(false);
         }
-        if (syncFlagPresent) {
+        if (syncFlagPresent && !asyncFlagPresent) {
             config.setAsyncOn(false);
             config.setSyncOn(true);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org