use of com.mulesoft.tools.migration.engine.project.structure.mule.three.MuleThreeApplication in project mule-migration-assistant by mulesoft.
the class ApplicationPersister method persistMuleAppProperties.
private void persistMuleAppProperties() throws Exception {
projectType = projectFactory.getProjectType(appModel.getProjectBasePath());
if (projectType.equals(MULE_THREE_APPLICATION) || projectType.equals(MULE_THREE_MAVEN_APPLICATION)) {
MuleThreeApplication project = new MuleThreeApplication(appModel.getProjectBasePath());
Path source = project.appProperties();
if (source.toFile().exists()) {
Path resources = ((MuleProject) projectOutput).srcMainResources();
resources.toFile().mkdirs();
Files.copy(source, resources.resolve("mule-app.properties"));
}
}
}
Aggregations