if (javaConfigurationService.checkIfIgnored(event, file)) return;
if (javaConfigurationService.checkIfIgnored(event, file)) return;
@Override public void perform(GraphRewrite event, EvaluationContext context, FileModel fileModel) { File file = new File(fileModel.getFilePath()); ArchiveModel archiveModel = GraphService.addTypeToModel(event.getGraphContext(), fileModel, ArchiveModel.class); archiveModel.setArchiveName(file.getName()); ApplicationArchiveModel appArchiveModel = GraphService.addTypeToModel(event.getGraphContext(), fileModel, ApplicationArchiveModel.class); // This line will cause the file to be marked if it is to be ignored new WindupJavaConfigurationService(event.getGraphContext()).checkIfIgnored(event, fileModel); ///appArchiveModel.setApplicationName(file.getName()); // Removed because not used. }
@Override public void perform(GraphRewrite event, EvaluationContext context, FileModel fileModel) { File file = new File(fileModel.getFilePath()); ArchiveModel archiveModel = GraphService.addTypeToModel(event.getGraphContext(), fileModel, ArchiveModel.class); archiveModel.setArchiveName(file.getName()); ApplicationArchiveModel appArchiveModel = GraphService.addTypeToModel(event.getGraphContext(), fileModel, ApplicationArchiveModel.class); // This line will cause the file to be marked if it is to be ignored new WindupJavaConfigurationService(event.getGraphContext()).checkIfIgnored(event, fileModel); ///appArchiveModel.setApplicationName(file.getName()); // Removed because not used. }
@Override public void perform(GraphRewrite event, EvaluationContext context, ArchiveModel payload) { if (new WindupJavaConfigurationService(event.getGraphContext()).checkIfIgnored(event, payload)) return; 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())); } final GraphContext graphContext = event.getGraphContext(); checkCancelled(event); // Create a folder for all archive contents. Path unzippedArchiveDir = getArchivesDirLocation(graphContext); ensureDirIsCreated(unzippedArchiveDir); // Collect the malformed archives here. Object badArchives = event.getRewriteContext().get(KEY_BAD_ARCHIVES); if (null == badArchives) event.getRewriteContext().put(KEY_BAD_ARCHIVES, new ArrayList<String>()); unzipToTempDirectory(event, context, unzippedArchiveDir, zipFile, payload, false); }
@Override public void perform(GraphRewrite event, EvaluationContext context, ArchiveModel payload) { if (new WindupJavaConfigurationService(event.getGraphContext()).checkIfIgnored(event, payload)) return; 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())); } final GraphContext graphContext = event.getGraphContext(); checkCancelled(event); // Create a folder for all archive contents. Path unzippedArchiveDir = getArchivesDirLocation(graphContext); ensureDirIsCreated(unzippedArchiveDir); // Collect the malformed archives here. Object badArchives = event.getRewriteContext().get(KEY_BAD_ARCHIVES); if (null == badArchives) event.getRewriteContext().put(KEY_BAD_ARCHIVES, new ArrayList<String>()); unzipToTempDirectory(event, context, unzippedArchiveDir, zipFile, payload, false); }
if (windupJavaConfigurationService.checkIfIgnored(event, subFileModel)) continue;
if (windupJavaConfigurationService.checkIfIgnored(event, subFileModel)) continue;
public void perform(GraphRewrite event, EvaluationContext context, FileModel payload) { if (new WindupJavaConfigurationService(event.getGraphContext()).checkIfIgnored(event, payload)) return; ExecutionStatistics.get().begin("DiscoverPropertiesFilesRuleProvider.perform"); GraphService<PropertiesModel> service = new GraphService<>(event.getGraphContext(), PropertiesModel.class); TechnologyTagService technologyTagService = new TechnologyTagService(event.getGraphContext()); PropertiesModel properties = service.addTypeToModel(payload); properties.setGenerateSourceReport(true); GraphService.addTypeToModel(event.getGraphContext(), payload, SourceFileModel.class); technologyTagService.addTagToFileModel(payload, TECH_TAG, TECH_TAG_LEVEL); ExecutionStatistics.get().end("DiscoverPropertiesFilesRuleProvider.perform"); } }
public void perform(GraphRewrite event, EvaluationContext context, FileModel payload) { if (new WindupJavaConfigurationService(event.getGraphContext()).checkIfIgnored(event, payload)) return; ExecutionStatistics.get().begin("DiscoverPropertiesFilesRuleProvider.perform"); GraphService<PropertiesModel> service = new GraphService<>(event.getGraphContext(), PropertiesModel.class); TechnologyTagService technologyTagService = new TechnologyTagService(event.getGraphContext()); PropertiesModel properties = service.addTypeToModel(payload); properties.setGenerateSourceReport(true); GraphService.addTypeToModel(event.getGraphContext(), payload, SourceFileModel.class); technologyTagService.addTagToFileModel(payload, TECH_TAG, TECH_TAG_LEVEL); ExecutionStatistics.get().end("DiscoverPropertiesFilesRuleProvider.perform"); } }