use of com.mulesoft.tools.migration.task.MigrationStepSelector in project mule-migration-assistant by mulesoft.
the class AdditionalNamespacesFactory method getTasksDeclaredNamespaces.
public static List<Namespace> getTasksDeclaredNamespaces(List<AbstractMigrationTask> migrationTasks) {
List<Namespace> taskSupportedNamespaces = new ArrayList<>();
for (MigrationTask task : ofNullable(migrationTasks).orElse(emptyList())) {
MigrationStepSelector stepSelector = new MigrationStepSelector(task.getSteps());
stepSelector.getApplicationModelContributionSteps().forEach(s -> taskSupportedNamespaces.addAll(s.getNamespacesContributions()));
}
taskSupportedNamespaces.add(getNamespace("mule", CORE_NAMESPACE.getURI()));
return taskSupportedNamespaces;
}
Aggregations