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/build.xml | |
| 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/build.xml')
| -rw-r--r-- | qpid/java/broker/build.xml | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/qpid/java/broker/build.xml b/qpid/java/broker/build.xml index 598097e4ae..f22972384d 100644 --- a/qpid/java/broker/build.xml +++ b/qpid/java/broker/build.xml @@ -33,12 +33,6 @@ <property name="qmf.output.dir" value="${module.precompiled}/org/apache/qpid/qmf/schema"/> <property name="qmf.output.file" value="BrokerSchema.java"/> - <property name="gentools.home" location="${project.root}/../gentools" /> - <property name="generated.package" value="org/apache/qpid/server/logging/messages" /> - <property name="generated.dir" location="${module.precompiled}/${generated.package}" /> - <property name="velocity.compile.dir" value="${module.build}/velocity"/> - <property name="velocity.timestamp" location="${generated.dir}/velocity.timestamp" /> - <target name="precompile" depends="gen_logging,gen_qmf"> <mkdir dir="${output.dir}"/> @@ -48,50 +42,6 @@ javacchome="${project.root}/lib"/> </target> - <target name="compile_velocity" > - <mkdir dir="${velocity.compile.dir}" /> - <!-- Compile LogMessages Velocity Generator --> - <javac source="${java.source}" target="${java.target}" - destdir="${velocity.compile.dir}" debug="on" includeantruntime="false" - deprecation="${javac.deprecation}" - srcdir="src/velocity/java" > - <classpath> - <pathelement path="${gentools.home}/lib/velocity-1.4.jar" /> - </classpath> - <compilerarg line="${javac.compiler.args}"/> - </javac> - </target> - - <property name="velocity.properties.dir" value="${project.root}/broker/src/main/java/org/apache/qpid/server/logging/messages"/> - - <target name="check_velocity_deps"> - <uptodate property="velocity.notRequired" targetfile="${velocity.timestamp}"> - <srcfiles dir="${velocity.properties.dir}" includes="LogMessages**" /> - <srcfiles dir="src/velocity/" includes="**/*.java **/*.vm" /> - </uptodate> - </target> - - <target name="gen_logging" depends="compile_velocity,check_velocity_deps" unless="velocity.notRequired"> - <mkdir dir="${generated.dir}"/> - <java classname="org.apache.qpid.server.logging.GenerateLogMessages" fork="true" dir="${gentools.home}/src" failonerror="true"> - <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"/> - <arg value="-r"/> - <arg value="org.apache.qpid.server.logging.messages.LogMessages"/> - <classpath> - <pathelement path="${project.root}/broker/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> <target name="check_qmf_deps"> <uptodate property="gen_qmf.notRequired" targetfile="${qmf.output.dir}/${qmf.output.file}"> |
