mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
10.16.2007 e85e6d0af6875147e77127f10e0211c014ca28d9
opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractor.java
@@ -78,6 +78,8 @@
  private String[] args = null;
  private boolean finished = false;
  private BuildExtractor(String[] args) {
    this.args = args;
    setProgressMessageFormatter(new PlainTextProgressMessageFormatter());
@@ -140,10 +142,14 @@
  private void expandZipFile(File buildFile)
          throws ApplicationException, IOException {
    LOG.log(Level.INFO, "expanding zip file " + buildFile.getPath());
    ZipExtractor extractor = new ZipExtractor(buildFile);
    extractor.extract(getStageDirectory());
    LOG.log(Level.INFO, "extraction finished");
    try {
      LOG.log(Level.INFO, "expanding zip file " + buildFile.getPath());
      ZipExtractor extractor = new ZipExtractor(buildFile);
      extractor.extract(getStageDirectory());
      LOG.log(Level.INFO, "extraction finished");
    } finally {
      finished = true;
    }
  }
  private File getStageDirectory() throws ApplicationException {
@@ -191,4 +197,11 @@
  public String getSummary(ProgressStep step) {
    return null;
  }
  /**
   * {@inheritDoc}
   */
  public boolean isFinished() {
    return finished;
  }
}