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 ru...@apache.org on 2006/02/08 12:19:59 UTC
svn commit: r375930 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
Author: ruchithf
Date: Wed Feb 8 03:19:54 2006
New Revision: 375930
URL: http://svn.apache.org/viewcvs?rev=375930&view=rev
Log:
Fix to import relative schema files properly. Thanks Ajith
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java?rev=375930&r1=375929&r2=375930&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java Wed Feb 8 03:19:54 2006
@@ -199,7 +199,8 @@
String baseURI= null;
if(currentURI.startsWith("http://")){
// current URI is a remote one
- baseURI = currentURI.substring(0,currentURI.lastIndexOf("/"));
+ String uriFrag = currentURI.substring(0,currentURI.lastIndexOf("/"));
+ baseURI = uriFrag + (uriFrag.endsWith("/") ? "" : "/");
}else{
// the uri should be a file
baseURI = new File(currentURI).getParentFile().getAbsolutePath();