You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2005/07/07 13:12:07 UTC

svn commit: r209586 - /webservices/axis/trunk/java/modules/samples/script/mtom-test.xml

Author: hemapani
Date: Thu Jul  7 04:12:04 2005
New Revision: 209586

URL: http://svn.apache.org/viewcvs?rev=209586&view=rev
Log:
add a script to run the mtom tests

Added:
    webservices/axis/trunk/java/modules/samples/script/mtom-test.xml

Added: webservices/axis/trunk/java/modules/samples/script/mtom-test.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/script/mtom-test.xml?rev=209586&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/samples/script/mtom-test.xml (added)
+++ webservices/axis/trunk/java/modules/samples/script/mtom-test.xml Thu Jul  7 04:12:04 2005
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<!-- ====================================================================== 
+     Feb 11, 2005 1:04:21 PM                                                        
+
+      This build file is intended to compile and run the Axis2 samples
+      provided here with the service being deployed at Tomcat or by
+      running a simple Axis2 server.   
+     
+                   
+                                                                     
+     ====================================================================== -->
+<project name="samples" basedir=".." default="mtom-test">
+     <property name="maven.repo.local" value="${user.home}/.maven/repository/" />
+     <property name="class.dir" value="${basedir}/target/test-classes" />
+     <property name="report.dir" value="${basedir}/target/test-reports" />
+     <property name="src.dir" value="${basedir}/test" />
+
+	<path id="test.classpath">
+		      <fileset dir="${maven.repo.local}">
+					<include name="j2ee/jars/activation.jar"/>
+					<include name="j2ee/jars/mailapi.jar"/>
+					<include name="axis/jars/axis2-core-0.9.jar"/>
+					<include name="axis/jars/axis2-xml-0.9.jar"/>
+					<include name="axis/jars/axis2-wsdl-0.9.jar"/>
+					<include name="axis/jars/axis-wsdl4j-1.2.jar"/>
+					<include name="commons-logging/jars/commons-logging-1.0.3.jar"/>
+					<include name="stax/jars/stax-1.1.1-dev.jar"/>
+					<include name="stax/jars/stax-api-1.0.jar"/>
+					<include name="log4j/jars/log4j-1.2.8.jar"/>
+					<include name="junit/jars/*.jar"/>
+		      </fileset>
+	</path>
+     
+	<target name="mtom-test" description="Delete all generated files">
+			<echo message="running MTOM tests"/>
+			<mkdir dir="${report.dir}"/>
+		    <mkdir dir="${class.dir}"/>
+			
+    		<javac srcdir="${src.dir}" destdir="${class.dir}">
+					<classpath refid="test.classpath" />
+			</javac>
+			<copy todir="${class.dir}">
+				<fileset dir="${src.dir}">
+				       <include name="**/*.jpg"/>
+				</fileset>
+			</copy>
+			<junit printsummary="yes" haltonfailure="yes">
+				   <formatter type="plain"/>
+				   <test name="org.apache.axis2.mtom.EchoRawMTOMTest" todir="${report.dir}" />
+				   <classpath>
+		                <pathelement location="${class.dir}"/>
+    	                 <path refid="test.classpath"/>
+		           </classpath>
+			</junit>
+	</target>
+</project>
+