User: user57 Date: 02/04/03 20:35:06 Modified: . build.xml Log: o Using ServerConfigLocator instead of ServerConfigImplMBean o Using XDoclet to generate some *MBean interfaces Revision Changes Path 1.28 +34 -2 jbossmq/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbossmq/build.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- build.xml 23 Mar 2002 21:11:01 -0000 1.27 +++ build.xml 4 Apr 2002 04:35:06 -0000 1.28 @@ -12,7 +12,7 @@ <!-- --> <!-- ====================================================================== --> -<!-- $Id: build.xml,v 1.27 2002/03/23 21:11:01 ejort Exp $ --> +<!-- $Id: build.xml,v 1.28 2002/04/04 04:35:06 user57 Exp $ --> <project default="main" name="JBoss/Messaging"> @@ -221,6 +221,7 @@ <property name="build.resources" value="${module.output}/resources"/> <property name="build.examples" value="${module.output}/examples"/> <property name="build.reports" value="${module.output}/reports"/> + <property name="build.gen-src" value="${module.output}/gen-src"/> <!-- Install/Release structure --> <property name="install.id" value="${module.name}-${module.version}"/> @@ -262,6 +263,19 @@ <property name="junit.timeout" value="240000"/> <!-- 4 minutes --> <property name="junit.batchtest.todir" value="${build.reports}"/> <property name="junit.jvm.options" value="-Ddummy"/> + + <!-- xdoclet --> + <path id="xdoclet.task.classpath"> + <path refid="javac.classpath"/> + <pathelement location="${project.tools}/lib/xdoclet.jar"/> + <pathelement location="${project.tools}/lib/ant.jar"/> + </path> + <property name="xdoclet.task.classpath" + refid="xdoclet.task.classpath"/> + + <taskdef name="todo" + classname="xdoclet.doc.DocumentDocletTask" + classpathref="xdoclet.task.classpath"/> </target> @@ -277,9 +291,26 @@ | documentation compiles. --> <target name="compile" - depends="compile-parsers, compile-classes, compile-rmi, compile-resources, compile-etc" + depends="compile-mbean-sources, compile-parsers, compile-classes, compile-rmi, compile-resources, compile-etc" description="Compile all source files."/> + <!-- Compile mbeans with XDoclet --> + <target name="compile-mbean-sources" depends="init"> + <taskdef name="xdoclet" classname="xdoclet.jmx.JMXDocletTask"/> + + <mkdir dir="${build.gen-src}"/> + <xdoclet sourcepath="${source.java}" + destdir="${build.gen-src}" + classpath="${xdoclet.task.classpath}" + excludedtags="@version,@author"> + <fileset dir="${source.java}"> + <include name="**/pm/**/*.java"/> + <include name="**/sm/**/*.java"/> + </fileset> + <mbeaninterface mergedir="${project.tools}/etc/xdoclet/templates"/> + </xdoclet> + </target> + <!-- Compile parsers --> <target name="compile-parsers" depends="init"> <mkdir dir="${build.parsers}/org/jboss/mq/selectors"/> @@ -343,6 +374,7 @@ includeJavaRuntime="${javac.include.java.runtime}" failonerror="${javac.fail.onerror}"> <src path="${source.java}"/> + <src path="${build.gen-src}"/> <classpath refid="javac.classpath"/> <include name="${javac.includes}"/> <exclude name="${javac.excludes}"/>
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development