8063074: test/tools/javac/plugin/showType/Test.java fails on Windows
Reviewed-by: ksrini
This commit is contained in:
parent
a75d2dbd39
commit
c4f3406133
@ -85,9 +85,9 @@ public class Test {
|
||||
.run();
|
||||
|
||||
File plugin = new File(pluginClasses.getPath(), "META-INF/services/com.sun.source.util.Plugin");
|
||||
tb.writeFile(plugin.getPath(),"ShowTypePlugin");
|
||||
tb.writeFile(plugin.getPath(), "ShowTypePlugin\n");
|
||||
tb.new JarTask()
|
||||
.run("cf", pluginJar.getPath(),"-C", pluginClasses.getPath(), ".");
|
||||
.run("cf", pluginJar.getPath(), "-C", pluginClasses.getPath(), ".");
|
||||
|
||||
testCommandLine("-Xplugin:showtype", ref1);
|
||||
testCommandLine("-Xplugin:showtype PI", ref2);
|
||||
|
@ -1475,7 +1475,11 @@ public class ToolBox {
|
||||
@Override
|
||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
|
||||
try {
|
||||
JarEntry e = new JarEntry(base.relativize(file).normalize().toString());
|
||||
String p = base.relativize(file)
|
||||
.normalize()
|
||||
.toString()
|
||||
.replace(File.separatorChar, '/');
|
||||
JarEntry e = new JarEntry(p);
|
||||
jos.putNextEntry(e);
|
||||
jos.write(Files.readAllBytes(file));
|
||||
jos.closeEntry();
|
||||
|
Loading…
Reference in New Issue
Block a user