vmassol 01/08/19 10:10:42 Added: cactus/conf/sample/build/share build-tests-orion-15.xml Log: added support for Orion 1.5 Revision Changes Path 1.1 jakarta-commons/cactus/conf/sample/build/share/build-tests-orion-15.xml Index: build-tests-orion-15.xml =================================================================== <!-- ======================================================================== Run Orion 1.5 tests ======================================================================== --> <target name="tests_orion_15" depends="prepare_tests_orion_15" if="orion.home.15"> <!-- Start the servlet engine, wait for it to be started, run the unit tests, stop the servlet engine, wait for it to be stopped. The servlet engine is stopped if the tests fail for any reason --> <runservertests testURL="http://localhost:${test.port}/test" startTarget="start_orion_15" stopTarget="stop_orion_15" testTarget="tests"/> </target> <!-- ======================================================================== Start Orion 1.5 ======================================================================== --> <target name="start_orion_15"> <java classname="com.evermind.server.ApplicationServer" fork="yes"> <arg value="-config"/> <arg value="${out.orion15.dir}/conf/server.xml"/> <classpath> <fileset dir="${orion.home.15}"> <include name="*.jar"/> </fileset> </classpath> </java> </target> <!-- ======================================================================== Stop Orion 1.5 ======================================================================== --> <target name="stop_orion_15"> <java classname="com.evermind.client.orion.OrionConsoleAdmin" fork="yes"> <arg value="ormi://localhost:23791/"/> <arg value="admin"/> <arg value="password"/> <arg value="-shutdown"/> <classpath> <fileset dir="${orion.home.15}"> <include name="*.jar"/> </fileset> </classpath> </java> </target> <!-- ======================================================================== Display a warning message if the needed servlet engine home property is not set ======================================================================== --> <target name="check_tests_orion_15" depends="testwar" unless="orion.home.15"> <echo message=""/> <echo message="*********************************************************"/> <echo message="WARNING : The 'orion.home.15' property has not been set."/> <echo message=" No test will be run on that servlet engine."/> <echo message="*********************************************************"/> <echo message=""/> </target> <!-- ======================================================================== Prepare directories and variables for running the tests ======================================================================== --> <target name="prepare_tests_orion_15" depends="check_tests_orion_15" if="orion.home.15"> <echo message="orion.home.15 = ${orion.home.15}"/> <property name="out.orion15.dir" value="${out.test.dir}/orion15"/> <property name="conf.orion15.dir" value="${conf.test.dir}/orion15"/> <!-- Create work and conf directories and copy configuration files --> <mkdir dir="${out.orion15.dir}"/> <mkdir dir="${out.orion15.dir}/conf"/> <!-- Orion need to have a /persistence directory created, otherwise it throws an error --> <mkdir dir="${out.orion15.dir}/persistence"/> <copy todir="${out.orion15.dir}/conf" filtering="on"> <fileset dir="${conf.orion15.dir}"/> </copy> <!-- Copy the war file --> <copy file="${out.test.dir}/test.war" tofile="${out.orion15.dir}/test.war"/> </target>