- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 02 Oct 2009 09:54:19 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util In directory hutz:/tmp/cvs-serv27574/src/org/w3c/unicorn/util Modified Files: Message.java Log Message: a message content is evaluated by velocity only if it is not a stacktrace. Index: Message.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Message.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Message.java 23 Sep 2009 09:23:14 -0000 1.3 +++ Message.java 2 Oct 2009 09:54:17 -0000 1.4 @@ -11,6 +11,7 @@ private String message; private String content; private Level level; + private boolean evaluateContent = false; public Message() { } @@ -22,12 +23,14 @@ } level = Level.ERROR; message = "$stack_trace_text"; + evaluateContent = false; } public Message(Level level, String message, String content) { this.level = level; this.message = message; this.content = content; + evaluateContent = true; } public Message(Level level, String message) { @@ -58,6 +61,13 @@ public void setLevel(Level level) { this.level = level; } - + + public boolean doEvaluateContent() { + return evaluateContent; + } + + public void setEvaluateContent(boolean evaluateContent) { + this.evaluateContent = evaluateContent; + } }
Received on Friday, 2 October 2009 09:54:21 UTC