Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. compile code from models via KiCo
  2. at the same time, generate wrapper code for these model files
  3. afterwards, execute arbitrary shell commands sequentially, if the KiCo compilation and wrapper code generation finished successfully

...

KiCo launch configurations work per project basis, thus every project has to create its own launch config. This is done automatically when performing Right Click > Run As > KiCo Compilationon a model file. (Screenshot) 

The Run As command will search for a KiCo launch config for the project. If there is such a config, the selected file is only added to the list of model files which should be compiled. If there is none, a launch config is created by using the main file and environment the project has been created with. If the main file and environment information could not be found, dialogs will query it from the user.

The main file of the launch config is used to set several file path variables, which can be used in several fields of the configuration, notably the shell commands to be executed, and wrapper code input. The variables that are set are

  • main_name : The file name, including its file extension (e.g. MyModel.sct)
  • main_path : The project relative path (e.g. src/MyModel.sct)
  • main_loc : The absolute file system path (e.g. /home/me/workspace/MyProject/src/MyModel.sct)
  • main_name_no_ext : The file name without its file extension (e.g. MyModel)

Further, similar variables for the compiled main path are set, that is, the main file in the directory of kieler generated files (see below)

  • compiled_main_name : The file name, including its file extension (e.g. MyModel.sct)
  • compiled_main_path : The project relative path (e.g. kieler-gen/MyModel.sct)
  • compiled_main_loc : The absolute file system path (e.g. /home/me/workspace/MyProject/kieler-gen/MyModel.sct)
  • compiled_main_name_no_ext : The file name without its file extension (e.g. MyModel)

Note: The variables are created in the first KiCo launch. So if you want to select them in a variable selection dialog of Eclipse, you must have started at least one KiCo launch configuration.

Launch Groups

Prom Environments

...