+ 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);
+ }
+ }
+