Search in sources :

Example 1 with MuleFourPolicy

use of com.mulesoft.tools.migration.engine.project.structure.mule.four.MuleFourPolicy in project mule-migration-assistant by mulesoft.

the class ApplicationPersister method createSourcesFolders.

private void createSourcesFolders() {
    File app;
    MuleProject project = (MuleProject) projectOutput;
    if (!exists(project.srcMainConfiguration())) {
        app = project.srcMainConfiguration().toFile();
        app.mkdirs();
    }
    if (!(project instanceof MuleFourDomain || project instanceof MuleFourPolicy)) {
        if (!exists(project.srcTestConfiguration())) {
            app = project.srcTestConfiguration().toFile();
            app.mkdirs();
        }
    }
}
Also used : MuleProject(com.mulesoft.tools.migration.engine.project.structure.mule.MuleProject) MuleFourDomain(com.mulesoft.tools.migration.engine.project.structure.mule.four.MuleFourDomain) File(java.io.File) MuleFourPolicy(com.mulesoft.tools.migration.engine.project.structure.mule.four.MuleFourPolicy)

Aggregations

MuleProject (com.mulesoft.tools.migration.engine.project.structure.mule.MuleProject)1 MuleFourDomain (com.mulesoft.tools.migration.engine.project.structure.mule.four.MuleFourDomain)1 MuleFourPolicy (com.mulesoft.tools.migration.engine.project.structure.mule.four.MuleFourPolicy)1 File (java.io.File)1