8063074: test/tools/javac/plugin/showType/Test.java fails on Windows
Reviewed-by: ksrini
This commit is contained in:
parent
a75d2dbd39
commit
c4f3406133
@ -85,7 +85,7 @@ public class Test {
|
|||||||
.run();
|
.run();
|
||||||
|
|
||||||
File plugin = new File(pluginClasses.getPath(), "META-INF/services/com.sun.source.util.Plugin");
|
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()
|
tb.new JarTask()
|
||||||
.run("cf", pluginJar.getPath(), "-C", pluginClasses.getPath(), ".");
|
.run("cf", pluginJar.getPath(), "-C", pluginClasses.getPath(), ".");
|
||||||
|
|
||||||
|
@ -1475,7 +1475,11 @@ public class ToolBox {
|
|||||||
@Override
|
@Override
|
||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
|
||||||
try {
|
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.putNextEntry(e);
|
||||||
jos.write(Files.readAllBytes(file));
|
jos.write(Files.readAllBytes(file));
|
||||||
jos.closeEntry();
|
jos.closeEntry();
|
||||||
|
Loading…
Reference in New Issue
Block a user