8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash
authorcoffeys
Sat, 05 Oct 2013 08:56:34 +0100
changeset 20591 6e54991851d5
parent 20590 b3b34e4344ce
child 20592 51f7789d7614
child 20984 dd8d100c5a15
8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash Reviewed-by: mkos, chegar
jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java
--- a/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java	Fri Oct 04 16:21:34 2013 +0100
+++ b/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java	Sat Oct 05 08:56:34 2013 +0100
@@ -332,7 +332,7 @@
                 if(options.verbose) {
                     listener.message(WscompileMessages.WSIMPORT_ARCHIVE_ARTIFACT(f, options.clientjar));
                 }
-                String entry = f.getCanonicalPath().substring(base.length()+1);
+                String entry = f.getCanonicalPath().substring(base.length()+1).replace(File.separatorChar, '/');
                 fi = new FileInputStream(f);
                 bis = new BufferedInputStream(fi);
                 JarEntry jarEntry = new JarEntry(entry);