}
}
+ public static void initializeWorkspaceWithBaseline(Path baseline, Path workspaceLocation, Path indicatorPath) throws PlatformException {
+ try {
+ Files.createDirectories(workspaceLocation);
+ FileUtils.extractZip(baseline.toFile(), workspaceLocation.toFile());
+ if (indicatorPath != null)
+ Files.write(indicatorPath, DatabaseBaselines.baselineIndicatorContents(indicatorPath));
+ } catch (IOException e) {
+ throw new PlatformException(e);
+ }
+ }
+
public static void main(String[] args) throws IOException {
packageBaseline(Paths.get("D:/temp/desktop/workspace"), Paths.get("d:/temp/desktop/workspace/baseline.zip"));
}