From 91412b93cccdb1175a007acfa48226a0235bc3ba Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Sun, 29 Sep 2013 17:21:17 +0000 Subject: QPID-5192: update logmessage template to improve generation notice and remove whitespace errors from generated files git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1527356 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/qpid/server/logging/messages/LogMessages.vm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/broker-core/src/velocity/templates/org/apache/qpid/server/logging/messages/LogMessages.vm b/qpid/java/broker-core/src/velocity/templates/org/apache/qpid/server/logging/messages/LogMessages.vm index cddfcfb581..803c2151da 100644 --- a/qpid/java/broker-core/src/velocity/templates/org/apache/qpid/server/logging/messages/LogMessages.vm +++ b/qpid/java/broker-core/src/velocity/templates/org/apache/qpid/server/logging/messages/LogMessages.vm @@ -31,21 +31,18 @@ import java.util.Locale; import java.util.ResourceBundle; /** - * Generated Using GeneratedLogMessages and LogMessages.vm + * DO NOT EDIT DIRECTLY, THIS FILE WAS GENERATED. * - * This file is based on the content of LogMessages.properties - * - * It is generated so that we can provide compile time validation of the - * message parameters. - * - * DO NOT EDIT DIRECTLY THIS FILE IS GENERATED. + * Generated using GenerateLogMessages and LogMessages.vm + * This file is based on the content of ${type.name}_logmessages.properties * + * To regenerate, edit the templates/properties and run the build with -Dgenerate=true */ public class ${type.name}Messages { private static ResourceBundle _messages; private static Locale _currentLocale = BrokerProperties.getLocale(); - + public static final String ${type.name.toUpperCase()}_LOG_HIERARCHY = DEFAULT_LOG_HIERARCHY_PREFIX + "${type.name.toLowerCase()}"; #foreach( $message in ${type.list} ) public static final String ${message.methodName.toUpperCase()}_LOG_HIERARCHY = DEFAULT_LOG_HIERARCHY_PREFIX + "${type.name.toLowerCase()}.${message.methodName.toLowerCase()}"; @@ -172,7 +169,7 @@ public class ${type.name}Messages { return message; } - + public String getLogHierarchy() { return ${message.methodName.toUpperCase()}_LOG_HIERARCHY; -- cgit v1.2.1