diff options
| author | Robert Gemmell <robbie@apache.org> | 2013-09-29 17:21:17 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2013-09-29 17:21:17 +0000 |
| commit | 91412b93cccdb1175a007acfa48226a0235bc3ba (patch) | |
| tree | f9f4b413920c8e3b16cc4d3be2dd66c39baf334e /qpid/java | |
| parent | c4b207628ac34d5662303245fdffbf8f2e8d71ef (diff) | |
| download | qpid-python-91412b93cccdb1175a007acfa48226a0235bc3ba.tar.gz | |
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
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/broker-core/src/velocity/templates/org/apache/qpid/server/logging/messages/LogMessages.vm | 15 |
1 files changed, 6 insertions, 9 deletions
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; |
