Ejemplo n.º 1
0
  private void extractBuildAndStartImport(
      final File documentationDataDirectory,
      final File temporaryWorkDirectory,
      final File targetFileForUploadedData)
      throws ZipFileExtractionException, MoveBuildDataException {
    File extractedZipFileDirectory = new File(temporaryWorkDirectory, "extracted");

    ZipFileExtractor.extractFile(targetFileForUploadedData, extractedZipFileDirectory);

    moveDataIntoCorrectDirectory(documentationDataDirectory, extractedZipFileDirectory);

    ScenarioDocuBuildsManager.INSTANCE.updateAllBuildsAndSubmitNewBuildsForImport();
  }
Ejemplo n.º 2
0
  @Override
  public void contextInitialized(final ServletContextEvent servletContextEvent) {
    LOGGER.info("====================================================");
    LOGGER.info("Scenarioo Viewer is starting up ...");
    LOGGER.info("====================================================");

    initializeApplicationVersion(servletContextEvent.getServletContext());
    loadConfiguration(servletContextEvent);

    LOGGER.info("  Updating documentation content directory (will be done asynchronously ...)");
    ScenarioDocuBuildsManager.INSTANCE.updateAllBuildsAndSubmitNewBuildsForImport();

    LOGGER.info("====================================================");
    LOGGER.info("Scenarioo Viewer started succesfully.");
    LOGGER.info("====================================================");
  }