Skip to content

Commit

Permalink
Update Java VDMCheck for FMI2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Jan 22, 2024
1 parent 9655eb9 commit b8872fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmi2/vdmcheck/src/main/java/VDMCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private static boolean run(String filename, XMLFile tempXML, String vdmOUT)
File tempOUT = File.createTempFile("out", "tmp");
tempOUT.deleteOnExit();

File schema = new File(jarLocation.getAbsolutePath() + File.separator + "schema/fmi2.xsd");
File schema = new File(jarLocation.getAbsolutePath() + File.separator + "fmi2schema/fmi2.xsd");

int exit = runCommand(jarLocation, tempOUT,
"java", "-jar", "xsd2vdm.jar",
Expand All @@ -265,7 +265,7 @@ private static boolean run(String filename, XMLFile tempXML, String vdmOUT)
runCommand(jarLocation, tempOUT,
"java", "-Xmx1g", "-cp", String.join(File.pathSeparator, dependencies),
"com.fujitsu.vdmj.VDMJ", "-vdmsl", "-q", "-annotations",
"-e", "isValidFMIConfiguration(" + varName + ")", "model", tempVDM.getCanonicalPath());
"-e", "isValidFMIConfiguration(" + varName + ")", "fmi2model", tempVDM.getCanonicalPath());

sed(tempOUT, System.out,
"^true$", "No errors found.",
Expand Down

0 comments on commit b8872fa

Please sign in to comment.