User: d_jencks Date: 02/01/30 15:00:32 Modified: . build.xml Log: test for jboss.xml's read-only: needs updated xdoclet Revision Changes Path 1.59 +74 -3 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- build.xml 2002/01/12 20:21:52 1.58 +++ build.xml 2002/01/30 23:00:32 1.59 @@ -12,7 +12,7 @@ <!-- --> <!-- ====================================================================== --> -<!-- $Id: build.xml,v 1.58 2002/01/12 20:21:52 patriot1burke Exp $ --> +<!-- $Id: build.xml,v 1.59 2002/01/30 23:00:32 d_jencks Exp $ --> <project default="main" name="JBoss/Testsuite"> @@ -150,6 +150,8 @@ <pathelement path="${junitejb.junitejb.lib}/junitejb.jar"/> </path> + + <!-- The combined library classpath --> <path id="library.classpath"> <path refid="sun.jndi.classpath"/> @@ -214,6 +216,7 @@ <pathelement path="${jboss.cluster.lib}/jbossha-client.jar"/> </path> + <!-- The combined dependant module classpath --> <path id="dependentmodule.classpath"> <path refid="jboss.j2ee.classpath"/> @@ -248,6 +251,10 @@ <property name="build.reports" value="${module.output}/reports"/> <property name="build.testlog" value="${module.output}/log"/> + <!--xdoclet output directories--> + <property name="build.gen-src" value="${module.output}/gen-src/"/> + <!-- put ejb-jar.xml and other resources into build.resources--> + <!-- Install/Release structure --> <property name="install.id" value="${module.name}-${module.version}"/> <property name="release.id" value="${install.id}"/> @@ -300,6 +307,18 @@ jbosstest.threadcount: ${jbosstest.threadcount} jbosstest.beancount: ${jbosstest.beancount} ]]></echo> + + <!-- 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> @@ -318,8 +337,41 @@ depends="compile-classes, compile-etc, compile-stylesheets, compile-resources, compile-bin" description="Compile all source files."/> + <!-- Compile EJB beans with XDoclet --> + <target name="compile-bean-sources" depends="init"> + <taskdef name="xdoclet" classname="xdoclet.ejb.EjbDocletTask"/> + + <mkdir dir="${build.gen-src}"/> + +<!--ejbconf--> + <mkdir dir="${build.resources}/ejb-conf/readonly/META-INF"/> + <xdoclet sourcepath="${source.java}" + destdir="${build.gen-src}" + classpath="${xdoclet.task.classpath}" + ejbspec="2.0" + excludedtags="@version,@author" + mergedir="${source.resources}/ejb-conf/readonly"> + <fileset dir="${source.java}"> + <include name="org/jboss/test/ejbconf/beans/**/*Bean.java"/> + </fileset> + <packageSubstitution packages="ejb" substituteWith="interfaces"/> + <remoteinterface/> + <localinterface/> + <homeinterface/> + <localhomeinterface/> + <!--session/--> + <deploymentdescriptor xmlencoding ="UTF-8" + destdir="${build.resources}/ejbconf/readonly/META-INF"/> + <jboss xmlencoding="UTF-8" + version="3.0" + destdir="${build.resources}/ejbconf/readonly/META-INF" + mergedir="${source.resources}/ejbconf/readonly/"/> + </xdoclet> + + </target> + <!-- Compile all class files --> - <target name="compile-classes" depends="init"> + <target name="compile-classes" depends="compile-bean-sources"> <mkdir dir="${build.classes}"/> <javac destdir="${build.classes}" optimize="${javac.optimize}" @@ -332,6 +384,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}"/> @@ -429,7 +482,8 @@ _jars-bench, _jars-security, _jars-cmp2, - _jars-jsr77"> + _jars-jsr77, + _jars-ejbconf"> </target> <!-- @@ -1451,6 +1505,23 @@ includes="junit/**/*.*"/> </jar> </target> + + <!-- jca ejbconf readonly tests --> + <target name="_jars-ejbconf"> + <mkdir dir="${build.lib}"/> + + <!-- build ejbconf-test.jar --> + <jar jarfile="${build.lib}/ejbconf-test.jar"> + <fileset dir="${build.classes}"> + <include name="org/jboss/test/ejbconf/beans/**"/> + </fileset> + <fileset dir="${build.resources}/ejbconf/readonly/"> + <include name="META-INF/*.*"/> + </fileset> + </jar> + + </target> + <!-- ================================================================== --> <!-- Documents -->
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development