8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash

Sat, 05 Oct 2013 08:56:34 +0100

author
coffeys
date
Sat, 05 Oct 2013 08:56:34 +0100
changeset 409
e56be3a2287a
parent 408
b0610cd08440
child 410
1d6c13d3b8de
child 415
da77e343f458

8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash
Reviewed-by: mkos, chegar

src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java	Fri Oct 04 16:21:34 2013 +0100
     1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java	Sat Oct 05 08:56:34 2013 +0100
     1.3 @@ -332,7 +332,7 @@
     1.4                  if(options.verbose) {
     1.5                      listener.message(WscompileMessages.WSIMPORT_ARCHIVE_ARTIFACT(f, options.clientjar));
     1.6                  }
     1.7 -                String entry = f.getCanonicalPath().substring(base.length()+1);
     1.8 +                String entry = f.getCanonicalPath().substring(base.length()+1).replace(File.separatorChar, '/');
     1.9                  fi = new FileInputStream(f);
    1.10                  bis = new BufferedInputStream(fi);
    1.11                  JarEntry jarEntry = new JarEntry(entry);

mercurial