powered by Jive Software

Command line arguments to start spark

Can we use an argument to start spark so that

a) we can pass the username and password to login

b) we can start a chat window with a specific user

Regards

Orlando

Hi Ollyando,

At the moment you cannot, but that is a great idea. I’'ll update the framework so your own plugin can take advantage of all arguments passed into the system. SPARK-8

Is there a description of the command line arguments now available in Spark 1.0.1?

So I used the exact names as listed.

  1. username

  2. password

  3. server

  4. start_chat_jid

  5. start_chat_muc

To make this easier to handle in a client side way, I have it where the app takes a HttpParam style of argument.

So…

Spark.exe username=foo&password=test&server=jivesoftware.com&start_chat_jid=test@j ivesoftware.com&start_chat_muc=test@conference.jivesoftware.com

This way, you can specify one, two or all, or none :). This has been tested and is good to go for the 1.0.1 release.

I have tried using the command line arguements, and I can’'t seem to get them to work.

I open a command prompt and type:

Spark.exe username=user&password=pwd&server=foo.bar

I get: ‘‘password’’ is not recognized as an internal or external command, operable program or batch file. ‘‘server’’ is not recognized as an internal or external command,

operable program or batch file.

But if I just do Spark.exe username=user

Spark starts with the username textbox filled with “user”, as it should.

Any ideas what I am doing wrong?

Nevermind, the arguments work when creating a shortcut and in the registry, which is all that I am interested in. Thanks.