User: d_jencks Date: 02/02/28 10:00:33 Modified: . build.xml Log: changed to use new xmbean dtd, and provided User.xml sample generated from xdoclet jboss xmbean task (available in xdoclet 1.1.2) Revision Changes Path 1.22 +37 -2 jmx/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jmx/build.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- build.xml 28 Feb 2002 04:08:03 -0000 1.21 +++ build.xml 28 Feb 2002 18:00:33 -0000 1.22 @@ -12,7 +12,7 @@ <!-- --> <!-- ====================================================================== --> -<!-- $Id: build.xml,v 1.21 2002/02/28 04:08:03 user57 Exp $ --> +<!-- $Id: build.xml,v 1.22 2002/02/28 18:00:33 d_jencks Exp $ --> <project default="main" name="JBoss/JMX"> @@ -143,6 +143,7 @@ <property name="build.lib" value="${module.output}/lib"/> <property name="build.api" value="${module.output}/api"/> <property name="build.etc" value="${module.output}/etc"/> + <property name="build.gen-src" value="${module.output}/gen-src"/> <!-- Install/Release structure --> <property name="install.id" value="${module.name}-${module.version}"/> @@ -181,6 +182,15 @@ <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"/> </target> @@ -200,8 +210,29 @@ description="Compile all source files." depends="compile-classes"/> + <!-- Compile mbeans with XDoclet --> + <target name="compile-mbean-sources" depends="init"> + <taskdef name="xdoclet" classname="xdoclet.jmx.JMXDocletTask"/> + + <mkdir dir="${build.gen-src}"/> +<!--this will be enabled as soon as xdoclet 1.1.2 comes out. +Since the xmbean doesn't really work now anyway, not a big loss + <xdoclet sourcepath="${source.java}" + destdir="${build.gen-src}" + classpath="${xdoclet.task.classpath}" + excludedtags="@version,@author"> + <fileset dir="${source.java}"> + <include name="test/implementation/modelmbean/support/User.java"/> + </fileset> + + <jbossxmbean/> + + </xdoclet> +--> + </target> + <!-- Compile all class files --> - <target name="compile-classes" depends="init"> + <target name="compile-classes" depends="init, compile-mbean-sources"> <mkdir dir="${build.classes}"/> <javac destdir="${build.classes}" optimize="${javac.optimize}" @@ -247,6 +278,10 @@ <fileset dir="${build.classes}"> <include name="test/**"/> </fileset> + <!--wait for xdoclet 1.1.2 + <fileset dir="${build.gen-src}"> + <include name="test/implementation/modelmbean/support/User.xml"/> + </fileset--> </jar> </target>
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development