- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 23 Jul 2009 13:00:43 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/output In directory hutz:/tmp/cvs-serv16043/org/w3c/unicorn/output Modified Files: OutputFactory.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: OutputFactory.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/output/OutputFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- OutputFactory.java 17 Jun 2008 13:41:11 -0000 1.3 +++ OutputFactory.java 23 Jul 2009 13:00:40 -0000 1.4 @@ -5,6 +5,7 @@ package org.w3c.unicorn.output; import java.io.IOException; +import java.net.URL; import java.util.LinkedHashMap; import java.util.Map; import java.util.Properties; @@ -13,6 +14,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.velocity.exception.ParseErrorException; import org.apache.velocity.exception.ResourceNotFoundException; +import org.w3c.unicorn.util.Property; /** * This class allow to manage all output module and output formater. It provide @@ -34,8 +36,10 @@ static { try { - OutputFactory.aPropertiesSpecialFormaters.load(OutputFactory.class - .getResourceAsStream("specialFormaters.properties")); + OutputFactory.aPropertiesSpecialFormaters.load( + new URL(Property.class.getResource("/"), + Property.get("REL_PATH_TO_CONF_FILES") + "specialFormaters.properties").openStream() + ); } catch (final IOException e) { OutputFactory.logger.error("IOException : " + e.getMessage(), e); e.printStackTrace();
Received on Thursday, 23 July 2009 13:00:51 UTC