|
From: David J. <d_j...@us...> - 2002-05-05 05:13:26
|
User: d_jencks
Date: 02/05/04 22:13:25
Modified: . build.xml
Log:
Added ability to deploy xmbeans from a *-service.xml file. Use the code attribute to specify the class of the object you want managed, and include an xmbean-dd=[quoted url] attribute to indicate where the xml dd comes from. An example is provided in the testsuite under jmx/xmbean. This deploys but has many other problems.
Revision Changes Path
1.120 +27 -2 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- build.xml 4 May 2002 19:46:52 -0000 1.119
+++ build.xml 5 May 2002 05:13:25 -0000 1.120
@@ -13,7 +13,7 @@
<!-- -->
<!-- ====================================================================== -->
-<!-- $Id: build.xml,v 1.119 2002/05/04 19:46:52 reverbel Exp $ -->
+<!-- $Id: build.xml,v 1.120 2002/05/05 05:13:25 d_jencks Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -414,7 +414,7 @@
| documentation compiles.
-->
<target name="compile"
- depends="compile-classes, compile-etc, compile-stylesheets, compile-resources"
+ depends="compile-classes, compile-xmbean-dds, compile-etc, compile-stylesheets, compile-resources"
description="Compile all source files."/>
<!-- Compile EJB beans with XDoclet -->
@@ -633,6 +633,21 @@
</fileset>
<mbeaninterface mergedir="${xdoclet.mergedir}"/>
</jmxdoclet>
+ </target>
+
+ <target name="compile-xmbean-dds" depends="init">
+ <taskdef name="jmxdoclet" classname="xdoclet.jmx.JMXDocletTask"/>
+<echo message="xdoclet.mergedir: ${xdoclet.mergedir}"/>
+ <mkdir dir="${build.resources}/jmx/xmbean/META-INF"/>
+ <jmxdoclet destdir="${build.resources}/jmx/xmbean/META-INF"
+ classpath="${xdoclet.task.classpath}"
+ force="true"
+ excludedtags="@version,@author">
+ <fileset dir="${source.java}">
+ <include name="org/jboss/test/jmx/xmbean/*.java"/>
+ </fileset>
+ <jbossxmbean/>
+ </jmxdoclet>
</target>
@@ -1464,6 +1479,16 @@
</fileset>
<fileset dir="${build.resources}/jmx/undeploy">
<include name="META-INF/*.xml"/>
+ </fileset>
+ </jar>
+
+ <!--xmbean test deployment-->
+ <jar jarfile="${build.lib}/user-xmbean.sar">
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/jmx/xmbean/*.class"/>
+ </fileset>
+ <fileset dir="${build.resources}/jmx/xmbean">
+ <include name="META-INF/**/*.xml"/>
</fileset>
</jar>
|