The following section provides some examples of calling the model compiler from the command-line.
java -jar modelcompiler.jar --help
Displays all supported command-line options and usage instructions.
java -jar modelcompiler.jar --root=C:\myworkspace --out=C:\outputdir --build=C:\workspace\project\HelloWorld.tcjs
Generates source code and makefiles from a .tcjs
file in a workspace, then builds the code using make
.
java -jar modelcompiler.jar --root=C:\paths.map --out=C:\outputdir --build=C:\workspace\project\HelloWorld.tcjs
Same as above, but uses a path map file to locate projects instead of a direct workspace folder.
java -DRTMakeMode=inclusive -jar modelcompiler.jar --root=C:\paths.map --out=C:\outputdir --build=C:\workspace\project\HelloWorld.tcjs
Builds using a path map and generates inclusive makefiles instead of the default recursive ones.
java -jar modelcompiler.jar --root=C:\myworkspace --out=C:\outputdir --generate=makefile C:\workspace\project\HelloWorld.tcjs
Generates only the makefiles for the .tcjs
file, skipping the build step.