Developing against multiple servoy.properties files

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

Developing against multiple servoy.properties files

Postby david » Thu Apr 15, 2010 7:43 pm

Is there a way to start up developer against different servoy.properties files like we could do with Servoy 3 and earlier? I'm going a little crazy with all the Servoy installs I have going -- one for each set of database connections. Be much easier to manage with properties files in 1-3 Servoy installs. The only reason I'd need more than one Servoy install then is for running different configurations of beans/plugins.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Developing against multiple servoy.properties files

Postby Harjo » Thu Apr 15, 2010 7:48 pm

Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Developing against multiple servoy.properties files

Postby Roberto Blasco » Thu Apr 15, 2010 7:56 pm

Hi david.

What I do is to save all servoy.properties files I use in a folder.

i.e.
[+] my_servoy_properties
  • servoy(erp).properties
  • servoy(cms).properties
  • servoy(stores).properties
  • servoy(hospital).properties

Before starting the developer I change the servoy.properties by the one I need (Just when I want to change of project). So ecah project has his own workspace, resource and servoy.properties.

It's very important to do it before starting the developer to let servoy engage the file.

Best regards. Roberto.
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: roberto.blasco.serrano@gmail.com
User avatar
Roberto Blasco
007
 
Posts: 355
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: Developing against multiple servoy.properties files

Postby david » Thu Apr 15, 2010 8:01 pm



How to set up on a Mac?
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Developing against multiple servoy.properties files

Postby david » Thu Apr 15, 2010 8:51 pm

Ah k, gottit. Other thread helped a lot Harjo, thanks.

1- Duplicate the Servoy developer file and the servoy.properties file and give unique names
2- Right-click on Servoy developer file and select "Show package contents"
3- Open file "Contents/MacOS/servoy.ini"
4- Specify the duplicated properties file by adding to the bottom:

Code: Select all
-Dproperty-file=servoy_cms.properties


5- You can also specifically set the workspace to load with this instance by adding the path information (enter above the -vmargs line, not at the bottom of the file):

Code: Select all
-data
/Users/admin/workspace_cms


The end result is multiple Servoy developer application icons -- each of which opens its own database connections and workspace. You can even run them simultaneously but I'm not sure how this would affect Eclipse history and other things that Eclipse stores to track your work session. I'm guessing things could get a little screwy :)
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 6 guests