W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/src/org/w3/unicorn/util UCNProperties.java,1.1.2.1,1.1.2.2

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 06 Aug 2009 11:30:38 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MZ1B8-0007bu-Ba@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3/unicorn/util
In directory hutz:/tmp/cvs-serv29132/src/org/w3/unicorn/util

Modified Files:
      Tag: dev2
	UCNProperties.java 
Log Message:
an error is now displayed if unicorn is not initialized

Index: UCNProperties.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3/unicorn/util/Attic/UCNProperties.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- UCNProperties.java	5 Aug 2009 17:21:40 -0000	1.1.2.1
+++ UCNProperties.java	6 Aug 2009 11:30:36 -0000	1.1.2.2
@@ -24,22 +24,22 @@
 	public void parse() {
 		for(Object key : this.keySet()) {
 			logger.debug("-----------------------------------------------------------------------------");
-			logger.debug("> Parsing Property : \"" + key + "\" => \"" + this.getProperty((String) key));
+			logger.debug("Parsing Property : \"" + key + "\" => \"" + this.getProperty((String) key));
 			Matcher matcher = pattern.matcher(this.getProperty((String) key));
 			
 			if (matcher.find()) {
 				matcher.reset();
 				while (matcher.find()) {
 					String match = matcher.group();
-					logger.debug(">> Pattern matched with: \"" + match + "\"");
+					logger.debug("> Pattern matched with: \"" + match + "\"");
 					
 					String foundKey = (String) match.subSequence(2, match.length()-1);
 					
 					if (!this.containsKey(foundKey)) {
-						logger.warn(">> String \"" + foundKey + "\" is not an existing property.");
+						logger.warn("> String \"" + foundKey + "\" is not an existing property.");
 					} else {
 						String foundProp = this.getProperty(foundKey);
-						logger.debug(">> Found coresponding property: \"" + foundKey + "\" => \"" + foundProp +"\"");
+						logger.debug("> Found coresponding property: \"" + foundKey + "\" => \"" + foundProp +"\"");
 						
 						String subst = this.getProperty((String) key);
 						subst = subst.replace(match, foundProp);
@@ -47,9 +47,9 @@
 						matcher = pattern.matcher(this.getProperty((String) key)); 
 					}
 				}
-				logger.debug(">> Parsed property: \"" + key + "\" => \"" + this.getProperty((String) key) + "\"");
+				logger.debug("> Parsed property: \"" + key + "\" => \"" + this.getProperty((String) key) + "\"");
 			} else {
-				logger.debug(">> No nested property found");
+				logger.debug("> No nested property found");
 			}
 		}
 	}
Received on Thursday, 6 August 2009 11:30:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:37 UTC