specify properties at start up developer

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

specify properties at start up developer

Postby siemon.geeroms » Fri Jan 08, 2016 5:20 pm

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
siemon.geeroms
 
Posts: 9
Joined: Fri Jan 08, 2016 5:15 pm

Re: specify properties at start up developer

Postby ROCLASI » Fri Jan 08, 2016 6:02 pm

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.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5217
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: specify properties at start up developer

Postby siemon.geeroms » Tue Jan 12, 2016 10:26 am

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".
siemon.geeroms
 
Posts: 9
Joined: Fri Jan 08, 2016 5:15 pm

Re: specify properties at start up developer

Postby Andrei Costescu » Tue Jan 12, 2016 10:51 am

I think you need more something like:

Code: Select all
"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

Code: Select all
"C:\Servoy\developer\servoy.exe -vmargs -Dproperty-file=test.properties"
but I don't know in this case if it just merges these -vmargs with the ones in your .ini file or not. Maybe you have to put all those from the ini here as well if it doesn't.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 907
Joined: Tue Jun 26, 2007 3:14 pm

Re: specify properties at start up developer

Postby Andrei Costescu » Tue Jan 12, 2016 10:58 am

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
Servoy
Andrei Costescu
 
Posts: 907
Joined: Tue Jun 26, 2007 3:14 pm

Re: specify properties at start up developer

Postby siemon.geeroms » Tue Jan 12, 2016 12:06 pm

Andrei Costescu wrote:I think you need more something like:

Code: Select all
"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
siemon.geeroms
 
Posts: 9
Joined: Fri Jan 08, 2016 5:15 pm

Re: specify properties at start up developer

Postby Andrei Costescu » Tue Jan 12, 2016 2:27 pm

You are welcome! :)
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 907
Joined: Tue Jun 26, 2007 3:14 pm

Re: specify properties at start up developer

Postby Ruben79 » Tue Jan 12, 2016 5:05 pm

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

Code: Select all
"<path_to>\servoy.exe" -data "<path_to>\project_workspace" eclipse -showlocation -vmargs -Xms40m -Xmx2048m -XX:MaxPermSize=512M -Dproperty-file=<project>.properties
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 73
Joined: Wed Apr 18, 2007 12:43 pm


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 1 guest