User: d_jencks
Date: 02/02/21 20:26:31
Modified: . build.xml
Log:
test for class visibility across packages in an ear
Revision Changes Path
1.76 +88 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- build.xml 22 Feb 2002 03:17:40 -0000 1.75
+++ build.xml 22 Feb 2002 04:26:31 -0000 1.76
@@ -27,7 +27,7 @@
<!-- tests-jmxri-compliance still needs to run over jmxri.jar -->
<!-- the aim of that test is to check our compliance suite. -->
-<!-- $Id: build.xml,v 1.75 2002/02/22 03:17:40 starksm Exp $ -->
+<!-- $Id: build.xml,v 1.76 2002/02/22 04:26:31 d_jencks Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -421,6 +421,57 @@
mergedir="${source.resources}/ejbconf/readonly/"/>
</xdoclet>
+<!--eardeployment, SessionA-->
+ <mkdir dir="${build.resources}/jmx/eardeployment/a/META-INF"/>
+ <xdoclet sourcepath="${source.java}"
+ destdir="${build.gen-src}"
+ classpath="${xdoclet.task.classpath}"
+ ejbspec="2.0"
+ excludedtags="@version,@author"
+ mergedir="${source.resources}/eardeployment/a">
+ <fileset dir="${source.java}">
+ <include name="org/jboss/test/jmx/eardeployment/a/ejb/*Bean.java"/>
+ </fileset>
+ <packageSubstitution packages="ejb" substituteWith="interfaces"/>
+ <remoteinterface/>
+ <localinterface/>
+ <homeinterface/>
+ <localhomeinterface/>
+ <!--session/-->
+ <deploymentdescriptor xmlencoding ="UTF-8"
+ destdir="${build.resources}/jmx/eardeployment/a/META-INF"/>
+ <jboss xmlencoding="UTF-8"
+ version="3.0"
+ destdir="${build.resources}/jmx/eardeployment/a/META-INF"
+ mergedir="${source.resources}/jmx/eardeployment/a/"/>
+ </xdoclet>
+
+<!--eardeployment, SessionB-->
+ <mkdir dir="${build.resources}/jmx/eardeployment/b/META-INF"/>
+ <xdoclet sourcepath="${source.java}"
+ destdir="${build.gen-src}"
+ classpath="${xdoclet.task.classpath}"
+ ejbspec="2.0"
+ excludedtags="@version,@author"
+ mergedir="${source.resources}/eardeployment/b">
+ <fileset dir="${source.java}">
+ <include name="org/jboss/test/jmx/eardeployment/b/ejb/*Bean.java"/>
+ </fileset>
+ <packageSubstitution packages="ejb" substituteWith="interfaces"/>
+ <remoteinterface/>
+ <localinterface/>
+ <homeinterface/>
+ <localhomeinterface/>
+ <!--session/-->
+ <deploymentdescriptor xmlencoding ="UTF-8"
+ destdir="${build.resources}/jmx/eardeployment/b/META-INF"/>
+ <jboss xmlencoding="UTF-8"
+ version="3.0"
+ destdir="${build.resources}/jmx/eardeployment/b/META-INF"
+ mergedir="${source.resources}/jmx/eardeployment/b/"/>
+ </xdoclet>
+
+
</target>
<target name="compile-mbean-sources" depends="init">
@@ -1073,6 +1124,42 @@
<include name="org/jboss/test/jmx/mbean/TestMB**"/>
</fileset>
</jar>
+
+ <!--eardeployment, 2 jars of 1 session bean each-->
+ <!--IMPORTANT!! this test relies on the dd's being in the "wrong" jar -->
+ <!--the point of the test is to see if the classes in one jar are visible to
+ the deployment descriptors of the other jar -->
+ <jar jarfile="${build.lib}/sessiona.jar">
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/jmx/eardeployment/a/**"/>
+ </fileset>
+ <fileset dir="${build.resources}/jmx/eardeployment/b/">
+ <include name="META-INF/ejb-jar.xml"/>
+ <include name="META-INF/jboss.xml"/>
+ </fileset>
+ </jar>
+
+ <jar jarfile="${build.lib}/sessionb.jar">
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/jmx/eardeployment/b/**"/>
+ </fileset>
+ <fileset dir="${build.resources}/jmx/eardeployment/a/">
+ <include name="META-INF/ejb-jar.xml"/>
+ <include name="META-INF/jboss.xml"/>
+ </fileset>
+ </jar>
+
+ <jar jarfile="${build.lib}/eardeployment.ear">
+ <fileset dir="${build.lib}">
+ <include name="sessiona.jar"/>
+ <include name="sessionb.jar"/>
+ </fileset>
+ <fileset dir="${build.resources}/jmx/eardeployment/">
+ <include name="META-INF/application.xml"/>
+ </fileset>
+ </jar>
+
+
</target>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development