Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Download the KielerCompilerConsole as a runnable Java JAR archive.

Using the KielerCompiler from Console:

The KIELER Compiler Console is a pure Java program that together with a KIELER RCA allows to call the KIELER Compiler from the console. Download the KielerCompilerConsole as a runnable Java JAR archive and start it using java:

java -jar KielerCompiler.jar <host>:<port> [Options] <transformationID_1> .. <transformationID_n>

In the above screenshot you see the KielerCompiler options when calling with no/too few parameters. The host or the port are mandatory parameters. By default the port 5555 is used and the default host is localhost. If you secify the port you do not need to specify localhost, if you specify the host you do not need to specify 5555. The following options are available:

  • -f <filename> : Use a specific input file (and not the console)
  • -o <filename> : Use a specific output file (and not the console)
  • -v : Use verbose compilation, more error messages
  • -s: Use strict mode compilation (only apply selected transformations)

Enable the TCP Server:

Before you can use the KielerCompiler.jar from the console, you need to start the KIELER RCA and activate the TCP Server. This is done using the button at 1. shown in the screenshot below. When pressing it the windows shwon at 2. is displayed and allows to enable or disable the server and also to modify the default port of 5555. Whenever the server was enabled and is started, you will see its job running at 3. in the lower region of the KIELER RCA. When you enabled the server in previous runs of the KIELER RCA it will automatically started when you run KIELER again.

Example 1:

When calling the KielerCompiler with the ABORT transformation and console output.

 

Example 2:

Using the KielerCompiler with CODEGENERATION transformation and a specific output file.

 

Example 3:

Using the KielerCompiler with a non exsiting transformation which generates an error message.

  • No labels