Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: [Grouper API] Multiple files

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: [Grouper API] Multiple files

Chronological Thread 
  • From: Chris Hyzer <>
  • To: Nicolas Forney <>, "" <>
  • Subject: [grouper-users] RE: [Grouper API] Multiple files
  • Date: Tue, 11 Jun 2013 15:57:59 +0000
  • Accept-language: en-US
  • Authentication-results:; dkim=neutral (message not signed) header.i=none

My suggestion is if you don’t use prod from the test env, then don’t have that password and connect string there… so I think your build script should put the right properties file in the right env.


However, if you still want to go down that route, you can have blanks or defaults in the, then read your own properties from another file, and use this call to decorate the properties:


GrouperClientUtils.grouperClientOverrideMap().put("grouperClient.ldap.url", "ldaps://whatever");





From: [mailto:] On Behalf Of Nicolas Forney
Sent: Tuesday, June 11, 2013 9:00 AM
Subject: [grouper-users] [Grouper API] Multiple files




We import grouperClient.jar library in a Java application in order to use the Grouper API.


I’d like to know if there is a built-in solution to specify the name or path to the file at runtime.


I have to deploy our application in two different environments (production and test), so I’d like to be able to embed the application with two which contains different configurations (for example : and a files). When the application is run on the prod or test server it should be able to load the corresponding grouper.client.[prod/test].properties file.


If it’s not possible, I can dynamically rename my prod or test grouper.client.porperties files when I deploy the application on the servers. However, I’d prefer a solution where I can handle this without having to copy or rename files.


Thank you for your help






Nicolas Forney

Université de Genève

24 rue du Général-Dufour
1211 Genève
Bureau 360d
Tél. +41 22 379 12 97


Archive powered by MHonArc 2.6.16.

Top of Page