Using EMML command line programs to test and publish mashups
2 replies
john.crupi
john.crupi's picture
Joined: 09/19/2008
User offline. Last seen 13 hours 39 min ago.

Mashups can be created in Wires, Presto Studio and manually in say Emacs.

If you want to use a command line tool to test and publish, you can do the following:

Go to the /mashupclient/bin directory

To run/test a mashup, run (for Windows you can just use emml.bat) :

sh emml.sh -u admin -p adminadmin -f my.emml

To publish a mashup, run (for Windows you can just use emmlpub.bat)

sh emmlpub.sh -u admin -p adminadmin -f my.emml -A

The -A activates the mashup.

Of course, make sure your (u)ser name and (p)assword are correct.

0
Your rating: None
Karthic Thope
Karthic Thope's picture
Joined: 09/22/2008
User offline. Last seen 2 weeks 5 days ago.

When using the command-line tool to test mashups, you can use the java command-line -D option to pass one or more parameters.

sh emml.sh -u admin -p adminadmin -f test.emml -Dparam1=value1 

Americo Savinon
Americo Savinon's picture
Joined: 09/19/2008
User offline. Last seen 2 weeks 3 days ago.

Another important command for updating mashups that have been already registered on Presto is:

sh emmlupd.sh -u admin -p adminadmin -f my.emml

NOTE: The mashup itself must be deactivated before using this update command. After that... remember remember the fifth of November and to re activate your mashup.

/Americo