Author: alessio.soldano(a)jboss.com
Date: 2012-04-17 11:32:30 -0400 (Tue, 17 Apr 2012)
New Revision: 16174
Modified:
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java
Log:
[JBWS-3488] fixing schema imports to paths with spaces
Modified:
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java 2012-04-17
12:22:00 UTC (rev 16173)
+++
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java 2012-04-17
15:32:30 UTC (rev 16174)
@@ -154,7 +154,7 @@
}
URL targetURL = new URL(baseURI.substring(0,
baseURI.lastIndexOf("/") + 1) + locationURI);
- File targetFile = new File(targetURL.getPath());
+ File targetFile = new File(targetURL.toURI()); //JBWS-3488
targetFile.getParentFile().mkdirs();
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
@@ -204,7 +204,7 @@
}
URL xsdURL = new URL(baseURI.substring(0,
baseURI.lastIndexOf("/") + 1) + schemaLocation);
- File targetFile = new File(xsdURL.getPath());
+ File targetFile = new File(xsdURL.toURI()); //JBWS-3488
targetFile.getParentFile().mkdirs();
String deploymentName = dep.getCanonicalName();
@@ -221,7 +221,6 @@
resourcePath = resourcePath.replace("//", "/");
}
URL resourceURL = dep.getResourceResolver().resolve(resourcePath);
-// URL resourceURL = dep.getMetaDataFileURL(resourcePath);
InputStream is = new ResourceURL(resourceURL).openStream();
if (is == null)
throw new IllegalArgumentException(BundleUtils.getMessage(bundle,
"CANNOT_FIND_SCHEMA_IMPORT_IN_DEPLOYMENT", resourcePath));
Show replies by date