Skip to content

Home

Development

IDEs

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

Exporting Martini packages

Martini packages make it easy to share applications by wrapping all related components in one unit. There are two ways you can export packages:

To the file system

Exporting a package to the file system produces a ZIP file which is a compressed copy of the package's directory. This ZIP file can then be imported by other Martini instances to persist the package. Everything – including the package's services, APIs, models, and configuration files, are copied.

To export your package(s), follow the steps below:

Exporting packages

Exporting packages

  1. If you're planning to export multiple packages, select them all in the Navigator view. You will know a package is selected when it becomes highlighted. You can press the key to select adjacent packages. To choose multiple packages one at a time, press the key in Martini Desktop, or key in Martini Online. You may ignore this step if you only need to export a single package.
  2. Right click on the package you want to export (any of the packages if multiple are selected). Hover over Export on the context menu, and then click Martini Package. This will open the package export wizard.
  3. In the wizard, you may recheck and reselect the to-be-exported packages. Martini Desktop even allows you to shift between instances. Select and deselect as needed.
  4. In Martini Desktop, you must select the destination directory; this is where the produced ZIP file will be saved.

    How do I tell Martini Online where to place the file?

    This will depend on the settings of your browser. In most cases, the Downloads directory is the default.

  5. Tick the checkbox for Include Package Properties if you want to include the .properties files of the packages you are going to export.

  6. Click Finish, and the package(s) should be downloaded.

Manual exports

It's also possible to export a package by manually compressing its corresponding package folder in the file system. To do this, however, you will need access to your Martini instance's file system.

If exporting multiple packages, you will need to compress all the ZIP files of the packages you want to export into a single parent ZIP file. It is important, however, that you do not place the individual package ZIPs under a parent directory when doing the file compression.

To your team workspace

You can also share applications with colleagues by uploading Martini packages to your team workspace. Items in the team workspace can then be published in the TORO Marketplace, where you'll be able to reach a wider audience.

To upload your packages to the team workspace, follow the steps below:

Uploading a package to team workspace

  1. Right click any package from the Navigator. From the appearing context menu, select Export > Upload to Team Workspace. This will open the team workspace package upload wizard.
  2. If you have multiple configured instances, select the instance from the Martini Instance dropdown box which contains the package(s) you want to upload.
  3. Select all the packages you want to upload from the instance using checkboxes.
  4. Click Next.
  5. A form prompting for package information will appear. You will have to populate this form for every package you have selected. To switch between forms, click the Next or Back button. Data you enter in the form will be displayed in each package's respective product page.
  6. Click Finish.

Uploading a package to team workspace

  1. Right click any package from the Navigator. From the appearing context menu, select Export > Upload to Team Workspace. This will open the team workspace package upload wizard.
  2. Select all the packages you want to upload from the instance using checkboxes.
  3. Click Next.
  4. A form prompting for package information will appear. You will have to populate this form for every package you have selected. To switch between forms, click the Next or Back button. Data you enter in the form will be displayed in each package's respective product page.
  5. Click Finish.

After going through the steps above, a popup will show, displaying the results of the operation. Successfully uploaded packages can be seen in the team workspace. If any of the uploads fail, a message will be included in the popup, indicating errors encountered.