diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2010-06-14 12:35:51 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2010-06-14 12:35:51 +0000 |
| commit | 16a79007527c096c7da40aa8cd0645279765227a (patch) | |
| tree | e79289714ae296e917a0eb6aa4729c4e22b18999 /qpid/java/broker-plugins | |
| parent | e6df9d5620840468843ab8a1ae32d6b39977824e (diff) | |
| download | qpid-python-16a79007527c096c7da40aa8cd0645279765227a.tar.gz | |
QPID-2625 : Moved Logging generation to moudule.xml to allow plugins to utilise the same functionality.
To enable generation for your plugin just add :
<target name="precompile" depends="gen_logging"/>
to your build.xml
Logging is now defined in a X_logmessage.properties file. Where X is used to make the XMessages.java class.
Also updated all existing usages to remove the 3 digit prefix that wasn't adding any info.
Updated ConfigStore and Transaction Log to use named properties rather than numeric values.
If we are going to continue with <3 alpha>-<4 numeric> ids for messages then we'll need to have some registry to prevent
clases. Perhaps it is simpler to relax this and require a plugin creator to provide a unique identifier for their messages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@954432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-plugins')
| -rw-r--r-- | qpid/java/broker-plugins/experimental/slowconsumerdetection/build.xml | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/qpid/java/broker-plugins/experimental/slowconsumerdetection/build.xml b/qpid/java/broker-plugins/experimental/slowconsumerdetection/build.xml index 340d749ecc..06ebc58030 100644 --- a/qpid/java/broker-plugins/experimental/slowconsumerdetection/build.xml +++ b/qpid/java/broker-plugins/experimental/slowconsumerdetection/build.xml @@ -29,64 +29,6 @@ nn - or more contributor license agreements. See the NOTICE file <target name="bundle" depends="bundle-tasks"/> - - <target name="precompile" depends="gen_logging"/> - - <property name="velocity.properties.dir" value="src/main/java/org/apache/qpid/server/virtualhost/plugin/logging"/> - - <property name="gentools.home" location="${project.root}/../gentools" /> - - <property name="generated.package" value="org/apache/qpid/server/virtualhost/plugin/logging" /> - <property name="generated.dir" location="${module.precompiled}" /> - <property name="velocity.compile.dir" value="${build.scratch}/broker/velocity"/> - <property name="velocity.timestamp" location="${generated.dir}/velocity.timestamp" /> - - - <target name="check_velocity_deps"> - <uptodate property="velocity.notRequired" targetfile="${velocity.timestamp}"> - <srcfiles dir="${velocity.properties.dir}" includes="LogMessages**" /> - <srcfiles dir="${project.root}/broker/src/velocity/" includes="**/*.java **/*.vm" /> - </uptodate> - </target> - - - - - <target name="gen_logging" depends="check_velocity_deps" unless="velocity.notRequired"> - <mkdir dir="${generated.dir}"/> - - <path id="logmessages.path"> - <fileset dir="${module.src}"> - <include name="**/*_logmessages.properties"/> - </fileset> - </path> - - <pathconvert property="logmessages" - refid="logmessages.path" - pathsep=" "/> - - <echo message="logmessages is ${logmessages}"/> - - <java classname="org.apache.qpid.server.logging.GenerateLogMessages" fork="true" dir="${gentools.home}/src" failonerror="true"> - <arg line="-r ${logmessages}"/> - <arg value="-j"/> - <arg value="-o"/> - <arg value="${generated.dir}"/> - <arg value="-t"/> - <arg value="${project.root}/broker/src/velocity/templates/org/apache/qpid/server/logging/messages"/> - <classpath> - <pathelement path="${project.root}/broker-plugins/experimental/slowconsumerdetection/src/main/java"/> - <pathelement path="${velocity.compile.dir}" /> - <fileset dir="${project.root}/lib"> - <include name="**/*.jar"/> - </fileset> - <pathelement path="${gentools.home}/lib/velocity-1.4.jar" /> - </classpath> - </java> - <touch file="${velocity.timestamp}" /> - </target> - - </project> |
