IBM Streams 4.2

Exporting SPL projects

You can export your SPL projects with Streams Studio. With the export feature, you can deploy your SPL project as a runnable SPL application onto a production environment. You can also use the export feature to share the source of your SPL project with others on your team.

Procedure

To export an SPL project:

  1. Click File > Export > IBM Streams Studio > SPL Project.
  2. Click Next.
  3. In the Export SPL Application window, select an SPL project to export. The list includes only SPL projects in the workspace; other project types (Java™ and C++) are not included in this list.
  4. Click Browse to identify the directory to which you export your project. If you are working in a remote development environment, you can export the project either to your local system or to a remote Linux system. To export a project to a remote system, in the Select a destination directory for export operation window, from the Connection list, select the connection that you can use to connect to the remote system.
  5. In the What to export field, specify how you would like to export your project:
    1. If you would like to include the project source as part of export, select SPL Projects. With this option, you can share your source with others on the team, and this project can be edited and rebuilt upon import into Streams Studio.
    2. If you want to export the project as a deployable SPL application, select Deployable SPL applications. With this option, you can deploy this project as a runnable application onto a production environment.
  6. Use the Generate Makefile option to create a single makefile for each exported project. That makefile contains a rule for compiling each build configuration, if any, defined in the project. This option is useful, for example, if you want to share the project with a developer who is not using Eclipse. In this case, the makefile captures the same compile commands that are used by the Eclipse internal builder.
  7. Use the Overwrite existing files without warning option to cause the wizard to overwrite existing SPL projects with same directory name without presenting a warning dialog.
  8. Click Finish.
    Note: To deploy your Java operator in a project, you run the following extra steps to package the class files in a JAR file and have it included in the export operation:
    1. In the Project Explorer view, right-click on the Java project.
    2. From the menu, select Export > Java > JAR File.
    3. In the JAR File Export wizard, select <SPL Project>/impl/lib/<jar file name>.
    4. Modify the model operator to include the exported JAR file in its lib path under Operator/Java/Context/Libraries.

Results

All the selected SPL projects are exported to the destination directory.
Note: If the selected projects contain external dependencies to other projects (such as Java projects that contain an implementation of the Java operators or C/C++ projects that contain an implementation of native functions and primitive operators), these external projects are not exported along with this operation. You must manually export these external projects, and make them available at run time.