use of com.mulesoft.tools.migration.engine.project.structure.mule.four.MuleFourApplication in project mule-migration-assistant by mulesoft.
the class ApplicationPersister method persistMuleArtifactJson.
private void persistMuleArtifactJson() throws IOException {
Optional<MuleArtifactJsonModel> muleArtifactJsonModel = appModel.getMuleArtifactJsonModel();
if (muleArtifactJsonModel.isPresent() && projectOutput instanceof MuleFourApplication) {
String jsonContent = appModel.getMuleArtifactJsonModel().get().toString();
File outputFile = ((MuleFourApplication) projectOutput).muleArtifactJson().toFile();
try (FileWriter fileWriter = new FileWriter(outputFile)) {
fileWriter.write(jsonContent);
}
}
}
Aggregations