public Set<ProjectModel> getRootProjectModels() { Iterable<FileModel> fileModelIterable = WindupConfigurationService.getConfigurationModel(this.getGraphContext()).getInputPaths(); return StreamSupport.stream(fileModelIterable.spliterator(), false) .map(FileModel::getProjectModel) .filter(Objects::nonNull) .collect(Collectors.toSet()); } }
public Set<ProjectModel> getRootProjectModels() { Iterable<FileModel> fileModelIterable = WindupConfigurationService.getConfigurationModel(this.getGraphContext()).getInputPaths(); return StreamSupport.stream(fileModelIterable.spliterator(), false) .map(FileModel::getProjectModel) .filter(Objects::nonNull) .collect(Collectors.toSet()); } }
/** * If this is in the input directory, return the input directory. Otherwise, return null. */ private String getInputPathForSource(WindupConfigurationModel configuration, String javaPath) { for (FileModel input : configuration.getInputPaths()) { if (javaPath.startsWith(input.getFilePath())) return input.getFilePath(); } return null; }
/** * If this is in the input directory, return the input directory. Otherwise, return null. */ private String getInputPathForSource(WindupConfigurationModel configuration, String javaPath) { for (FileModel input : configuration.getInputPaths()) { if (javaPath.startsWith(input.getFilePath())) return input.getFilePath(); } return null; }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createJbpmReport(event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createReport(event, context, event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context, WindupJavaConfigurationModel payload) { WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createIgnoredFilesReport(event.getGraphContext(), payload, application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel projectModel = inputPath.getProjectModel(); transformWebXml(context, event.getGraphContext(), projectModel); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel projectModel = inputPath.getProjectModel(); createReport(event.getGraphContext(), projectModel); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { WindupConfigurationModel configuration = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configuration.getInputPaths()) { createReportIndex(event.getGraphContext(), inputPath.getProjectModel()); } } });
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createReport(event, context, event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { WindupConfigurationModel configuration = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configuration.getInputPaths()) { createReportIndex(event.getGraphContext(), inputPath.getProjectModel()); } } });
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createJbpmReport(event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createEJBReport(event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel projectModel = inputPath.getProjectModel(); transformWebXml(context, event.getGraphContext(), projectModel); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel projectModel = inputPath.getProjectModel(); createReport(event.getGraphContext(), projectModel); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { // configuration of current execution WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for (FileModel inputPath : configurationModel.getInputPaths()) { ProjectModel application = inputPath.getProjectModel(); createEJBReport(event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { WindupConfigurationModel windupConfiguration = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); for(FileModel fileModel : windupConfiguration.getInputPaths()) { ProjectModel application = fileModel.getProjectModel(); if (application == null) throw new WindupException("Error, no project found in: " + fileModel.getFilePath()); createReportModel(event.getGraphContext(), application); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); ReportService reportService = new ReportService(event.getGraphContext()); Iterable<FileModel> inputApplications = configurationModel.getInputPaths(); for (FileModel inputApplication : inputApplications) { ProjectModelTraversal projectModelTraversal = new ProjectModelTraversal(inputApplication.getProjectModel()); traverse(event, projectModelTraversal, reportService); } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { WindupConfigurationModel configurationModel = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); ReportService reportService = new ReportService(event.getGraphContext()); Iterable<FileModel> inputApplications = configurationModel.getInputPaths(); for (FileModel inputApplication : inputApplications) { ProjectModelTraversal projectModelTraversal = new ProjectModelTraversal(inputApplication.getProjectModel()); traverse(event, projectModelTraversal, reportService); } }