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/02/26 15:56:22 UTC
svn commit: r511836 -
/webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
Author: dims
Date: Mon Feb 26 06:56:21 2007
New Revision: 511836
URL: http://svn.apache.org/viewvc?view=rev&rev=511836
Log:
Fix for AXIS2-2085 - axis2-wsdl2code-maven-plugin throws a FileNotFoundException when users want to use default behavior for 'URI to namespace mapping'
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=511836&r1=511835&r2=511836
==============================================================================
--- 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 Mon Feb 26 06:56:21 2007
@@ -170,7 +170,7 @@
/**
* @parameter
*/
- private NamespaceURIMapping[] namespaceURIs;
+ private NamespaceURIMapping[] namespaceURIs = null;
private static class InheritedArtifact
{
@@ -341,12 +341,14 @@
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[]{getNamespaceToPackagesMap()}));
-
+ if(!((namespaceToPackages == null) && (namespaceURIs == null)))
+ {
+ optionMap.put(
+ CommandLineOptionConstants.WSDL2JavaConstants.NAME_SPACE_TO_PACKAGE_OPTION,
+ new CommandLineOption(
+ CommandLineOptionConstants.WSDL2JavaConstants.NAME_SPACE_TO_PACKAGE_OPTION,
+ new String[]{getNamespaceToPackagesMap()}));
+ }
return optionMap;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org