Repository navigation
Compiling
Instructions regarding the MAL compiler and the MAL project structure can be found in the exampleLang README.
For detailed instructions, see building exampleLang and running unit tests (exampleLang).
For instructions regarding how to write tests, see Instantiating Language Models.
mvn test
Generates .java files from the MAL specifications and outputs them into <project>/target/generated-test-sources. Also compiles the language source files together with any unit test code found. Finally runs the unit tests.
mvn test -Dtest=TestMyLanguage
Same as mvn test except only the test cases defined in TestMyLanguage.java are run.
mvn test -Dtest=TestMyLanguage#myTestCase
Same as mvn test except only the test case myTestCase defined in TestMyLanguage.java is run.
mvn clean package -PsecuriCAD
The result will be a .jar file found in <project>/target. To skip running tests, add -Dmaven.test.skip=true.
Building a securiCAD package requires access to foreseeti's Maven repository. Contact support@foreseeti.com to request access.
mvn generate-test-sources
This solely compiles MAL specifications into .java source code files. The files are found under <project>/target/generated-test-sources.
mvn test-compile
This compiles MAL specifications into .java source code files. Also compiles those into .class files together with any unit test files found. The Java source files are found under <project>/target/generated-test-sources and the class files under <project>/target/test-classes. No tests are run with this command.