Author: amilas
Date: Sat May 29 16:27:51 2010
New Revision: 949414
URL: http://svn.apache.org/viewvc?rev=949414&view=rev
Log:
fixed the issue AXIS2-4681
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java?rev=949414&r1=949413&r2=949414&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
(original)
+++
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
Sat May 29 16:27:51 2010
@@ -246,6 +246,15 @@ public class WSDL2CodeMojo extends Abstr
////////////////////////////////////////////////////////////////
//WSDL file name
+ // here we need to set the project base uri to relative paths.
+ if (wsdlFile.indexOf(":") == -1){
+ //i.e this is not a uri
+ File file = new File(wsdlFile);
+ if (!file.isAbsolute()){
+ wsdlFile = project.getBasedir() + File.separator + wsdlFile;
+ }
+ }
+
optionMap.put(
CommandLineOptionConstants.WSDL2JavaConstants.WSDL_LOCATION_URI_OPTION,
new CommandLineOption(