Search in sources :

Example 1 with MuleThreeApplication

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"));
        }
    }
}
Also used : Path(java.nio.file.Path) MuleProject(com.mulesoft.tools.migration.engine.project.structure.mule.MuleProject) MuleThreeApplication(com.mulesoft.tools.migration.engine.project.structure.mule.three.MuleThreeApplication)

Aggregations

MuleProject (com.mulesoft.tools.migration.engine.project.structure.mule.MuleProject)1 MuleThreeApplication (com.mulesoft.tools.migration.engine.project.structure.mule.three.MuleThreeApplication)1 Path (java.nio.file.Path)1