Login with command-line parameters

Information about development with ProjX.

Login with command-line parameters

Postby Development@SIB » Fri May 23, 2014 4:11 pm

If you start an application from another application or via command-line, you could use command-line arguments to set application parameters like username/password. Of course, you shouldn't use this in production environments but you could, for test applications or unit tests.

It's really simple to set application parameters via command-line (see Using Application Parameters):

To implement automatic login, simply set

Code: Select all
Application.Login.username=username Application.Login.password=password

after the application and config parameter:

Code: Select all
com.sibvisions.apps.projx.ProjX /com/sibvisions/apps/myapp/application.xml
User avatar
Development@SIB
 
Posts: 310
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation