[jboss-cvs] JBoss Messaging SVN: r3903 - projects/network-benchmark.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 21 08:24:04 EDT 2008


Author: jmesnil
Date: 2008-03-21 08:24:04 -0400 (Fri, 21 Mar 2008)
New Revision: 3903

Added:
   projects/network-benchmark/build.xml
Log:
* ant targets to run the tests from the cli

Added: projects/network-benchmark/build.xml
===================================================================
--- projects/network-benchmark/build.xml	                        (rev 0)
+++ projects/network-benchmark/build.xml	2008-03-21 12:24:04 UTC (rev 3903)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ====================================================================== 
+     21 mars 2008 12:38:55                                                        
+
+     jmesnil                                                                
+     ====================================================================== -->
+<project name="network benchmark" default="compile">
+
+    <path id="classpath">
+       <pathelement path="build/ "/>
+       <pathelement location="lib/junit.jar"/>
+       <pathelement location="lib/mina-core-2.0.0-M2-20080317.150334-8.jar"/>
+       <pathelement location="lib/slf4j-api-1.4.3.jar"/>
+       <pathelement location="lib/slf4j-log4j12.jar"/>
+       <pathelement location="lib/log4j.jar"/>
+    </path>
+	
+    <target name="compile">
+    	<mkdir dir="build"/>
+    	<javac srcdir="src" destdir="build"
+    		classpathref="classpath"
+		/>
+    </target>
+
+	<target name="bio-server" depends="compile">
+		<java classpathref="classpath" 
+			classname="network.BIOServer"
+		/>
+	</target>
+
+	<target name="nio-server" depends="compile">
+		<java classpathref="classpath" 
+			classname="network.NIOServer"
+		/>
+	</target>
+
+	<target name="mina-server" depends="compile">
+		<java classpathref="classpath" 
+			classname="network.MINAServer"
+			fork="yes"
+		/>
+	</target>
+	
+	<target name="test" depends="compile">
+		<mkdir dir="output" />
+	    <junit printsummary="withOutAndErr" showoutput="true">
+	    	<classpath>
+	    		<path refid="classpath"/>
+	        </classpath>
+	    	<test name="network.NetworkClientTest" />
+	      </junit>
+	</target>
+	
+    <target name="clean">
+        <delete dir="ouput/" />
+        <delete dir="build/" />
+    </target>
+
+</project>




More information about the jboss-cvs-commits mailing list