Emitting the source code from the command line

You can emit the source code for an ISP and APEX2 projects by using command line interface. The command line tool is implemented as a command file for Windows platform and as a shell script for Linux platform and can be found in the following folders:

The tool takes an ISP or APEX2 file and produces the source code in a specified location. By default, the tool emits the code for all components and stores it in the location specified in its second parameter.

To emit the source code with default settings:

  1. Open command line and navigate to the tool folder.
  2. (Optional) Open the runIt file in editor and configure emission settings. To learn about all emission settings, refer to RunIt emission settings.
  3. At the command line, type runIt, specify a path to a diagram file, a path to the location where you want to emit the source code, and other positional parameters according to the command line pattern (below).
    The syntax of the command line tool is as follows:
    • for ISP
      runIt[.cmd/.sh] <file_to_emit> <destination_location> <workspace_location> <vsdk_location> <vsdk_ext_location>
    • for APEX
      runIt[.cmd/.sh] <file_to_emit> <destination_location> <vsdk_ext_location> <ext_kernels_location>
  4. Press Enter to start emitting the source code. Wait until the tool finishes emitting the code.

The emission tool will create folders with the source code in the specified destination_location.