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 bu...@apache.org on 2002/04/03 20:04:00 UTC
cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava SymbolTable.java
butek 02/04/03 10:04:00
Modified: java/src/org/apache/axis/wsdl/toJava SymbolTable.java
Log:
There was a bug in WSDL2Java such that it couldn't always find local
imported files. Thanks to Jason Blumenkrantz (Jason.Blumenkrants@tfn.com)
for the fix.
Revision Changes Path
1.50 +13 -0 xml-axis/java/src/org/apache/axis/wsdl/toJava/SymbolTable.java
Index: SymbolTable.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/SymbolTable.java,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- SymbolTable.java 20 Mar 2002 20:53:56 -0000 1.49
+++ SymbolTable.java 3 Apr 2002 18:03:59 -0000 1.50
@@ -467,6 +467,19 @@
if (contextURL != null) {
String contextFileName = contextURL.getFile();
String parentName = new File(contextFileName).getParent();
+ if (parentName != null) {
+ url = new URL(new URL("file", "", parentName + '/'),
+ spec);
+ try {
+ url.openStream();
+ }
+ catch (IOException secondioe) {
+ throw new FileNotFoundException(url.toString());
+ }
+ }
+ else {
+ throw new FileNotFoundException(url.toString());
+ }
}
throw new FileNotFoundException(url.toString());
}