I have an Eclipse RCP based application It starts with a splash screen, which has Host, Username, Password as fields and a button for authenticating those credentials.
My project requirement is automating this procedure. I created a .bat file , in which I wrote a script to open that application and bypassed the splash screen by "-nosplash" command.
Is there any way in which I can pass these credentials and automate this procedure through a .bat file or some other means?
-nosplash was in eclipse help documentation
You can use:
String [] args = Platform.getApplicationArgs();
to get the arguments to your RCP. So if you specify the host, user and password as arguments to the rcp command in the .bat file you can use this to process them in the RCP.
So your .bat file might contain:
yourrcpapp -host host -user user -password password
And your RCP code would loop through the args
picking out these values