changeset 775:acd6dd0d1c07

8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash Reviewed-by: mkos, chegar
author coffeys
date Wed, 09 Oct 2013 11:46:08 +0100
parents d9a1af9117fb
children 501a6dedca75
files src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java	Tue Oct 08 16:00:56 2013 +0200
+++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java	Wed Oct 09 11:46:08 2013 +0100
@@ -334,7 +334,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, '/');
             BufferedInputStream bis = new BufferedInputStream(
                             new FileInputStream(f));
             JarEntry jarEntry = new JarEntry(entry);