mirror of
https://github.com/Echtzeitsysteme/gips-examples.git
synced 2024-06-03 02:31:53 +00:00
Example bug fix: create instances folder if it does not exist
This commit is contained in:
parent
9e7c37c76e
commit
c9d43f0920
|
@ -1,6 +1,8 @@
|
|||
package refactoring.software.example.system.lars.example;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
import org.eclipse.emf.common.util.URI;
|
||||
import org.emoflon.gips.core.ilp.ILPSolverOutput;
|
||||
|
@ -36,6 +38,7 @@ public class RefactoringExampleRunner {
|
|||
|
||||
final String outputFile = instancesFolder + "/" + scenarioName + "_solved.xmi";
|
||||
try {
|
||||
Files.createDirectories(Paths.get(instancesFolder));
|
||||
gipsApi.saveResult(outputFile);
|
||||
} catch (final IOException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue