From: Ron B. <rjb...@us...> - 2007-01-18 00:40:59
|
Update of /cvsroot/glassbox/glassbox/agent/src/glassbox/util/spring In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2570/src/glassbox/util/spring Modified Files: GlassboxPropertyConfigurer.java Log Message: Use common definition for Glassbox configuration directory location. Index: GlassboxPropertyConfigurer.java =================================================================== RCS file: /cvsroot/glassbox/glassbox/agent/src/glassbox/util/spring/GlassboxPropertyConfigurer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GlassboxPropertyConfigurer.java 15 Nov 2006 08:18:11 -0000 1.2 --- GlassboxPropertyConfigurer.java 18 Jan 2007 00:40:58 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- package glassbox.util.spring; + import glassbox.config.GlassboxInitializer; + import java.io.File; *************** *** 15,20 **** public GlassboxPropertyConfigurer() { ! super(); ! String installDir = System.getProperty("glassbox.install.dir"); if (installDir != null) { setLocation(new FileSystemResource(installDir+File.separator + "glassbox.properties")); --- 17,21 ---- public GlassboxPropertyConfigurer() { ! String installDir = GlassboxInitializer.getConfigDir(); if (installDir != null) { setLocation(new FileSystemResource(installDir+File.separator + "glassbox.properties")); |