You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/07/03 07:00:22 UTC
svn commit: r552666 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
Author: dims
Date: Mon Jul 2 22:00:21 2007
New Revision: 552666
URL: http://svn.apache.org/viewvc?view=rev&rev=552666
Log:
simplify further and get the case working where wsdl is in the current directory
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/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java?view=diff&rev=552666&r1=552665&r2=552666
==============================================================================
--- 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 Mon Jul 2 22:00:21 2007
@@ -333,10 +333,10 @@
*
* @param currentURI
*/
- private String getBaseURI(String currentURI) throws URISyntaxException {
+ private String getBaseURI(String currentURI) throws URISyntaxException, IOException {
File file = new File(currentURI);
- if (file.exists() && file.getParentFile() != null) {
- return file.getParentFile().toURI().toString();
+ if (file.exists()) {
+ return file.getCanonicalFile().getParentFile().toURI().toString();
}
String uriFragment = currentURI.substring(0, currentURI.lastIndexOf("/"));
return uriFragment + (uriFragment.endsWith("/") ? "" : "/");
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org