- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 23 Jul 2009 13:00:44 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/index
In directory hutz:/tmp/cvs-serv16043/org/w3c/unicorn/index
Modified Files:
IndexGenerator.java
Log Message:
properties files now in a single directory org/w3c/unicorn/conf/
only one unicorn properties file (no more local and remote)
Index: IndexGenerator.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/index/IndexGenerator.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- IndexGenerator.java 23 Sep 2008 13:53:58 -0000 1.6
+++ IndexGenerator.java 23 Jul 2009 13:00:42 -0000 1.7
@@ -60,8 +60,8 @@
*/
static {
try {
- IndexGenerator.aProperties.load(new URL("file:"
- + Property.get("VELOCITY_CONFIG_FILE")).openStream());
+ IndexGenerator.aProperties.load(new URL(Property.class.getResource("/"),
+ Property.get("REL_PATH_TO_CONF_FILES") + "velocity.properties").openStream());
IndexGenerator.aProperties.put(Velocity.FILE_RESOURCE_LOADER_PATH,
Property.get("PATH_TO_INDEX_TEMPLATES"));
IndexGenerator.aVelocityEngine.init(IndexGenerator.aProperties);
Received on Thursday, 23 July 2009 13:00:57 UTC