Index: lutinutil/src/java/org/codelutin/util/Resource.java diff -u lutinutil/src/java/org/codelutin/util/Resource.java:1.25 lutinutil/src/java/org/codelutin/util/Resource.java:1.26 --- lutinutil/src/java/org/codelutin/util/Resource.java:1.25 Wed Mar 29 11:26:36 2006 +++ lutinutil/src/java/org/codelutin/util/Resource.java Wed Oct 4 14:51:55 2006 @@ -23,10 +23,10 @@ * * @author POUSSIN Benjamin * Copyright Code Lutin -* @version $Revision: 1.25 $ +* @version $Revision: 1.26 $ * -* Mise a jour: $Date: 2006/03/29 11:26:36 $ -* par : $Author: thimel $ +* Mise a jour: $Date: 2006/10/04 14:51:55 $ +* par : $Author: bpoussin $ */ package org.codelutin.util; @@ -152,7 +152,7 @@ } - /** + /** * Recherche et retourne l'objet properties de configuration à utiliser. * Les différents fichiers trouvé sont chainé. L'ordre de recherche est * le classpath, le fichier dans /etc et enfin le chemin sur le filesystem @@ -160,7 +160,17 @@ * @return l'objet Properties de configuration */ static public Properties getConfigProperties(String filename) throws IOException { - Properties result = new Properties(); + Properties result = getConfigProperties(filename, null); + return result; + } + + static public Properties getConfigProperties(String filename, Properties parent) throws IOException { + Properties result = null; + if (parent != null) { + result = new Properties(parent); + } else { + result = new Properties(); + } URL inClasspath = Resource.class.getResource(filename); if(inClasspath != null){