# HG changeset patch # User coffeys # Date 1380959794 -3600 # Node ID e56be3a2287a341bac96427a78150a140c49f4d8 # Parent b0610cd08440232ec4a38466f02a817ef3421ab4 8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash Reviewed-by: mkos, chegar diff -r b0610cd08440 -r e56be3a2287a src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java --- a/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java Fri Oct 04 16:21:34 2013 +0100 +++ b/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);