public static Path getArchivesDirLocation(final GraphContext graphContext) { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(graphContext); String windupOutputFolder = cfg.getOutputPath().getFilePath(); return Paths.get(windupOutputFolder, ARCHIVES); }
public static Path getArchivesPath(final GraphContext graphContext) { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(graphContext); String windupOutputFolder = cfg.getOutputPath().getFilePath(); return Paths.get(windupOutputFolder, ARCHIVES); }
public static Path getArchivesDirLocation(final GraphContext graphContext) { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(graphContext); String windupOutputFolder = cfg.getOutputPath().getFilePath(); return Paths.get(windupOutputFolder, ARCHIVES); }
public static Path getArchivesPath(final GraphContext graphContext) { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(graphContext); String windupOutputFolder = cfg.getOutputPath().getFilePath(); return Paths.get(windupOutputFolder, ARCHIVES); }
/** * Returns the output directory for reporting. */ public Path getReportDirectory() { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(getGraphContext()); Path path = cfg.getOutputPath().asFile().toPath().resolve(REPORTS_DIR); createDirectoryIfNeeded(path); return path.toAbsolutePath(); }
/** * Returns the output directory for reporting. */ public Path getReportDirectory() { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(getGraphContext()); Path path = cfg.getOutputPath().asFile().toPath().resolve(REPORTS_DIR); createDirectoryIfNeeded(path); return path.toAbsolutePath(); }
@Override public void perform(GraphRewrite event, EvaluationContext context, ArchiveModel payload) { LOG.info("Unzipping archive: " + payload.toPrettyString()); File zipFile = payload.asFile(); if (zipFile == null || !zipFile.isFile()) { throw new WindupException("Input path doesn't point to a file: " + (zipFile == null ? "null" : zipFile.getAbsolutePath())); } // create a folder for all archive contents WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); String windupOutputFolder = cfg.getOutputPath().getFilePath(); Path windupTempUnzippedArchiveFolder = Paths.get(windupOutputFolder, ARCHIVES); if (!Files.isDirectory(windupTempUnzippedArchiveFolder)) { try { Files.createDirectories(windupTempUnzippedArchiveFolder); } catch (IOException e) { throw new WindupException("Failed to create temporary folder: " + windupTempUnzippedArchiveFolder + " due to: " + e.getMessage(), e); } } unzipToTempDirectory(event.getGraphContext(), windupTempUnzippedArchiveFolder, zipFile, payload); }
if (PathUtil.isInSubDirectory(inputPath, fileModel.asFile())) String outputPath = configuration.getOutputPath().getFilePath(); result = Paths.get(outputPath).resolve("classes").toFile();
if (PathUtil.isInSubDirectory(inputPath, fileModel.asFile())) String outputPath = configuration.getOutputPath().getFilePath(); result = Paths.get(outputPath).resolve("classes").toFile();
String outputDir = cfg.getOutputPath().getFilePath();
String outputDir = cfg.getOutputPath().getFilePath();
String outputFolderPath = config.getOutputPath().getFilePath() + File.separator; ClassificationService classificationService = new ClassificationService(event.getGraphContext()); final Map<String, CSVWriter> projectToFile = new HashMap<>();
mavCtx.mavenizedBaseDir = config.getOutputPath().asFile().toPath().resolve(OUTPUT_SUBDIR_MAVENIZED); mavCtx.unifiedGroupId = new ModuleAnalysisHelper(grCtx).deriveGroupId(projectModel); mavCtx.unifiedAppName = normalizeDirName(projectModel.getName());
mavCtx.mavenizedBaseDir = config.getOutputPath().asFile().toPath().resolve(OUTPUT_SUBDIR_MAVENIZED); mavCtx.unifiedGroupId = new ModuleAnalysisHelper(grCtx).deriveGroupId(projectModel); mavCtx.unifiedAppName = normalizeDirName(projectModel.getName());
String outputFolderPath = config.getOutputPath().getFilePath() + File.separator; ClassificationService classificationService = new ClassificationService(event.getGraphContext()); final Map<String, CSVWriter> projectToFile = new HashMap<>();