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:
- Click .
- Click Next.
- 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.
- 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.
- In the What to export field, specify
how you would like to export your project:
- 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.
- 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.
- 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.
- 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.
- 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:
- In the Project Explorer view, right-click on the Java project.
- From the menu, select .
- In the JAR File Export wizard, select <SPL
Project>/impl/lib/<jar file name>.
- 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.