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

2006/unicorn/src/org/w3c/unicorn/tasklist Task.java,1.6,1.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 10 Sep 2009 15:45:51 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MllqJ-0001Au-Vu@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist
In directory hutz:/tmp/cvs-serv4499/src/org/w3c/unicorn/tasklist

Modified Files:
	Task.java 
Log Message:
added logger

Index: Task.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist/Task.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Task.java	4 Sep 2009 17:41:51 -0000	1.6
+++ Task.java	10 Sep 2009 15:45:49 -0000	1.7
@@ -12,6 +12,8 @@
 
 import javax.activation.MimeType;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.w3c.unicorn.contract.Observer;
 import org.w3c.unicorn.tasklist.parameters.Parameter;
 import org.w3c.unicorn.tasklisttree.TLTCond;
@@ -64,6 +66,8 @@
 	//private List<String> listOfOutput;
 
 	private Output output;
+	
+	private static Log logger = LogFactory.getLog(Task.class);
 
 	/**
 	 * Creates a new Task.
@@ -105,12 +109,12 @@
 	 */
 	public void displayTree(TLTNode root) {
 		for (TLTExec exec : root.getExecutionList()) {
-			System.out.println(exec);
+			logger.trace(exec);
 		}
 		for (TLTIf ifs : root.getIfList()) {
 			displayTree(ifs.getIfOk());
 			for (TLTCond conds : ifs.getCondArray()) {
-				System.out.println(conds);
+				logger.trace(conds);
 			}
 			displayTree(ifs.getIfNotOk());
 		}
Received on Thursday, 10 September 2009 15:46:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT