equal
deleted
inserted
replaced
1473 for (Path path: paths) { |
1473 for (Path path: paths) { |
1474 Files.walkFileTree(base.resolve(path), new SimpleFileVisitor<Path>() { |
1474 Files.walkFileTree(base.resolve(path), new SimpleFileVisitor<Path>() { |
1475 @Override |
1475 @Override |
1476 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { |
1476 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { |
1477 try { |
1477 try { |
1478 JarEntry e = new JarEntry(base.relativize(file).normalize().toString()); |
1478 String p = base.relativize(file) |
|
1479 .normalize() |
|
1480 .toString() |
|
1481 .replace(File.separatorChar, '/'); |
|
1482 JarEntry e = new JarEntry(p); |
1479 jos.putNextEntry(e); |
1483 jos.putNextEntry(e); |
1480 jos.write(Files.readAllBytes(file)); |
1484 jos.write(Files.readAllBytes(file)); |
1481 jos.closeEntry(); |
1485 jos.closeEntry(); |
1482 return FileVisitResult.CONTINUE; |
1486 return FileVisitResult.CONTINUE; |
1483 } catch (IOException e) { |
1487 } catch (IOException e) { |