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 am...@apache.org on 2007/06/14 20:47:02 UTC
svn commit: r547353 -
/webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java
Author: amilas
Date: Thu Jun 14 11:47:01 2007
New Revision: 547353
URL: http://svn.apache.org/viewvc?view=rev&rev=547353
Log:
fixed the issue AXIS2-1993
Modified:
webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java
Modified: webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java?view=diff&rev=547353&r1=547352&r2=547353
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java (original)
+++ webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java Thu Jun 14 11:47:01 2007
@@ -595,7 +595,7 @@
}
StringBuffer pathBuilder = new StringBuffer();
for (Iterator iter = pathElementStack.iterator(); iter.hasNext();) {
- pathBuilder.append("/" + iter.next());
+ pathBuilder.append(File.separator + iter.next());
}
systemId = pathBuilder.toString().substring(1);
@@ -630,7 +630,7 @@
//if the systemId actually had a scheme then as per the URL
//constructor, the context URL scheme should be ignored
baseUri = (baseUri == null) ? "file:///" : baseUri;
- URL url = new URL(new URL(baseUri), systemId);
+ URL url = new URL(baseUri + systemId);
return new InputSource(url.openStream());
}
return XMLUtils.getEmptyInputSource();
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org