You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/03/14 14:39:18 UTC

svn commit: r518135 - /webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java

Author: dims
Date: Wed Mar 14 06:39:18 2007
New Revision: 518135

URL: http://svn.apache.org/viewvc?view=rev&rev=518135
Log:
Fix for AXIS2-2168 - Mistake in uri to namespace mapping in mojo of wsdl2code

Modified:
    webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java

Modified: webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java?view=diff&rev=518135&r1=518134&r2=518135
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java Wed Mar 14 06:39:18 2007
@@ -365,7 +365,7 @@
     				throw new MojoFailureException("A namespace to package mapping requires an uri child element.");
     			}
     			String uriPackageName = mapping.getPackageName();
-    			if (uriPackageName != null) {
+    			if (uriPackageName == null) {
     				throw new MojoFailureException("A namespace to package mapping requires a packageName child element.");
     			}
     			if(sb.length() > 0) {



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