specify properties at start up developer

Hi,

Can you specify the desired properties file with which you want to start your developer via for example cmd? I have different properties files that refer to other DB connections and I would like to start different workspaces with those different connections.

Kr,

Siemon

Hi Siemon,

I see this is your first post. Welcome to the forum. :)

As for your question. You might want to check out this thread.

Hope this helps.

Hi,

Thanks for your quick reply, unfortunately the parameter “-Dproperty-file” is only working if I add it to the .ini file. If I add it as a parameter when executing the servoy.exe like this “C:\Servoy\developer\servoy.exe -Dproperty-file=test.properties” it is still taking the default “servoy.properties”.

I think you need more something like:

"C:\Servoy\developer\servoy.exe --launcher.ini <path_to_one_servoy.ini_file>"
```and then you can make multiple copies of the .ini file that declare the -Dproperty-file

or

“C:\Servoy\developer\servoy.exe -vmargs -Dproperty-file=test.properties”

You can find an example of using directly -vmargs here viewtopic.php?f=13&t=13814#p72262.
For more info about startup arguments http://www.java-tutorial.ch/eclipse/ecl … -arguments

Andrei Costescu:
I think you need more something like:

"C:\Servoy\developer\servoy.exe --launcher.ini <path_to_one_servoy.ini_file>"
```and then you can make multiple copies of the .ini file that declare the -Dproperty-file

Thanks Andrei Costescu,

This worked, I’ve created a separate ini file and added this a argument to my shortcut!

Kind regards,

Siemon

You are welcome! :)

I’m using separate batch files to start my Servoy projects, which works great:

"<path_to>\servoy.exe" -data "<path_to>\project_workspace" eclipse -showlocation -vmargs -Xms40m -Xmx2048m -XX:MaxPermSize=512M -Dproperty-file=<project>.properties