doc uplod unzip location depends on doc id
@@ -168,12 +168,14 @@ public class DocumentationServer {
}
private void unzip(String docId, Path path) {
+ Path unzipDest = deployRoot.resolve(docId);
+
ConsoleOutputs.out(Color.BLUE, "unzipping docs: ", Color.PURPLE, path, Color.BLACK, " to ",
- Color.PURPLE, deployRoot);
+ Color.PURPLE, unzipDest);
- UnzipTask unzipTask = new UnzipTask(deployRoot.resolve(path), deployRoot);
+ UnzipTask unzipTask = new UnzipTask(deployRoot.resolve(path), unzipDest);
unzipTask.execute();
- ConsoleOutputs.out(Color.BLUE, "unzipped docs: ", Color.PURPLE, deployRoot);
+ ConsoleOutputs.out(Color.BLUE, "unzipped docs: ", Color.PURPLE, unzipDest);
}
// this is entry point for local development and testing
