Changeset 339:e333c56c8047
- Timestamp:
- 09/10/09 15:45:49 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@340
- Message:
-
added logger
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r285
|
r339
|
|
| 1 | | // $Id: Task.java,v 1.6 2009-09-04 17:41:51 tgambet Exp $ |
| | 1 | // $Id: Task.java,v 1.7 2009-09-10 15:45:49 tgambet Exp $ |
| 2 | 2 | // Author: Jean-Guilhem Rouel |
| 3 | 3 | // (c) COPYRIGHT MIT, ERCIM and Keio, 2006. |
| … |
… |
|
| 13 | 13 | import javax.activation.MimeType; |
| 14 | 14 | |
| | 15 | import org.apache.commons.logging.Log; |
| | 16 | import org.apache.commons.logging.LogFactory; |
| 15 | 17 | import org.w3c.unicorn.contract.Observer; |
| 16 | 18 | import org.w3c.unicorn.tasklist.parameters.Parameter; |
| … |
… |
|
| 65 | 67 | |
| 66 | 68 | private Output output; |
| | 69 | |
| | 70 | private static Log logger = LogFactory.getLog(Task.class); |
| 67 | 71 | |
| 68 | 72 | /** |
| … |
… |
|
| 106 | 110 | public void displayTree(TLTNode root) { |
| 107 | 111 | for (TLTExec exec : root.getExecutionList()) { |
| 108 | | System.out.println(exec); |
| | 112 | logger.trace(exec); |
| 109 | 113 | } |
| 110 | 114 | for (TLTIf ifs : root.getIfList()) { |
| 111 | 115 | displayTree(ifs.getIfOk()); |
| 112 | 116 | for (TLTCond conds : ifs.getCondArray()) { |
| 113 | | System.out.println(conds); |
| | 117 | logger.trace(conds); |
| 114 | 118 | } |
| 115 | 119 | displayTree(ifs.getIfNotOk()); |