Publishing Mashup Scripts from a Command Line
Once you are satisfied with the functionality of your mashup script, you can publish it as a mashup in Presto from a command line.
To publish a mashup script from a command line
1. Open a command window and move to the presto-install/prestocli/bin folder.
You may wish to put a copy of the mashup script in this directory to simplify paths.
2. Enter the emmlpub command in this form:
emmlpub -f mashup-script-filename-u user-name-p password[-s mashup-name-desc description-t tag[...] -app category[...] -P provider-url presto-url]
Use your user name and password for
Presto.
Note: | The credentials you use with this command identify the owner of the mashup created from this mashup script. Only the owner or Presto administrators can modify or update the mashup. |
The URL is optional. It defaults to
http://localhost:app-server-port/presto/edge/api where
app-server-port is the port defined when you installed
Presto.
If you need to register this mashup to a remote server or the default host or port is incorrect, use -url http://app-server:port/presto/edge/api with the appropriate application server address and port.
The mashup name, description, provider, tags and category are optional information. If the values for these options contain spaces, you must enclose the values in quotes.
If you omit the mashup name, Presto uses the name in the name attribute on <mashup> in the mashup script. You can change this name in Presto Hub at any time. The Presto Server also assigns a permanent ID to the mashup.
Presto removes or changes some characters in resource names to create resource IDs. Resource IDs can contain characters from the character sets supported by the Presto Repository and numbers plus the following symbols: _ ~ -. Resource IDs cannot contain spaces.
You can assign multiple tags, each beginning with the -t option.
You can assign a category with the -app option.
Note: | You cannot use category names that contain spaces with this command. Simply omit this option and add the category name in Presto Hub. |
Once the script is published, you see a confirmation.