--Login with command-line parameters
Posted: Fri May 23, 2014 4:11 pm
This article is outdated - please use our new system at
https://doc.sibvisions.com
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