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 MashZone NextGen from a command line.
To publish a mashup script from a command line
1. Open a command window and move to the MashZoneNG-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
MashZone NextGen.
Note: The credentials you use with this command identify the owner of the mashup created from this mashup script. Only the owner or MashZone NextGen administrators can modify or update the mashup.
The URL is optional. It defaults to
http://localhost:app-server-port/mashzone/edge/api where
app-server-port is the port defined when you installed
MashZone NextGen.
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/mashzone/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, MashZone NextGen uses the name in the name attribute on <mashup> in the mashup script. You can change this name in MashZone NextGen Hub at any time. The MashZone NextGen Server also assigns a permanent ID to the mashup.
MashZone NextGen removes or changes some characters in resource names to create resource IDs. Resource IDs can contain characters from the character sets supported by the MashZone NextGen 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 MashZone NextGen Hub.
Once the script is published, you see a confirmation.