Documentation

(applications)

Login With Command-Line Parameters

This is an old revision of the document!


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

Application.Login.username=username Application.Login.password=password

after the application class and config parameter:

java .-cp... com.sibvisions.apps.projx.ProjX /myapp/application.xml Application.Login.username=...
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information