axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r473316 - /webservices/axis2/branches/java/1_1/modules/samples/userguide/build.xml
Date Fri, 10 Nov 2006 11:13:36 GMT
Author: thilina
Date: Fri Nov 10 03:13:30 2006
New Revision: 473316

URL: http://svn.apache.org/viewvc?view=rev&rev=473316
Log:
improving the userguide samples build script

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/userguide/build.xml

Modified: webservices/axis2/branches/java/1_1/modules/samples/userguide/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/userguide/build.xml?view=diff&rev=473316&r1=473315&r2=473316
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/userguide/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/userguide/build.xml Fri Nov 10 03:13:30
2006
@@ -1,4 +1,4 @@
-<project name="samples" default="alltests">
+<project name="samples" default="generate.service">
     <property name="mainDir" value="../.."/>
     <property name="classes.dir" value="build/classes"/>
     <path id="axis.classpath">
@@ -8,8 +8,8 @@
         <pathelement location="build/userguide.jar"/>
     </path>
 
-    <target name="alltests"
-            depends="testEchoBlockingClient,testEchoBlockingDualClient,testEchoNonBlockingDualClient,testPingClient,testWebServiceWithModuleClient">
+    <target name="run.client.all"
+            depends="run.client.ping,run.client.blocking,run.client.blockingdual,run.client.nonblocking,run.client.nonblockingdual,run.client.servicewithmodule">
     </target>
     
     <target name="compile">
@@ -33,6 +33,7 @@
                 <include name="userguide/example1/**/*.class"/>
             </fileset>
         </jar>
+        <copy file="build/MyService.aar" tofile="../../repository/services/sample-MyService.aar"
overwrite="true"/>
         <jar destfile="build/MyServiceWithModule.aar" >
             <fileset dir="src/userguide/example2/">
                 <include name="META-INF/**"/>
@@ -41,6 +42,7 @@
                 <include name="userguide/example2/**/*.class"/>
             </fileset>
         </jar>
+        <copy file="build/MyServiceWithModule.aar" tofile="../../repository/services/sample-MyServiceWithModule.aar"
overwrite="true"/>
         <jar destfile="build/WsaMappingService.aar">
             <fileset dir="src/userguide/example3/">
                 <include name="META-INF/**"/>
@@ -49,6 +51,7 @@
                 <include name="userguide/example3/**/*.class"/>
             </fileset>
         </jar>
+        <copy file="build/WsaMappingService.aar" tofile="../../repository/services/sample-WsaMappingService.aar"
overwrite="true"/>
         <jar destfile="build/logging.mar">
             <fileset dir="src/userguide/loggingmodule/">
                 <include name="META-INF/**"/>
@@ -57,46 +60,60 @@
                 <include name="userguide/loggingmodule/**/*.class"/>
             </fileset>
         </jar>
+        <copy file="build/logging.mar" tofile="../../repository/modules/sample-logging.mar"
overwrite="true"/>
     </target>
 
-    <target name="testEchoBlockingClient" depends="compile">
+    <target name="run.client.blocking" depends="compile">
         <java classname="userguide.clients.EchoBlockingClient"
               classpathref="axis.classpath" fork="true">
             <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
         </java>
     </target>
-    <target name="testEchoBlockingDualClient" depends="compile">
+    <target name="run.client.blockingdual" depends="compile">
         <java classname="userguide.clients.EchoBlockingDualClient"
               classpathref="axis.classpath" fork="true">
             <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
         </java>
     </target>
-    <target name="testEchoNonBlockingDualClient" depends="compile">
-        <java classname="userguide.clients.EchoNonBlockingDualClient"
+    
+    <target name="run.client.nonblocking" depends="compile">
+        <java classname="userguide.clients.EchoNonBlockingClient"
               classpathref="axis.classpath" fork="true">
             <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
         </java>
     </target>
-    <target name="testPingClient" depends="compile">
-        <java classname="userguide.clients.PingClient"
+    
+    <target name="run.client.nonblockingdual" depends="compile">
+        <java classname="userguide.clients.EchoNonBlockingDualClient"
               classpathref="axis.classpath" fork="true">
             <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
         </java>
     </target>
-    <target name="testWebServiceWithModuleClient" depends="compile">
-        <java classname="userguide.clients.ClientForWebServiceWithModule"
+    
+    <target name="run.client.ping" depends="compile">
+        <java classname="userguide.clients.PingClient"
               classpathref="axis.classpath" fork="true">
             <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
         </java>
     </target>
-
-    <target name="testEchoNonBlockingClient" depends="compile">
-        <java classname="userguide.clients.EchoNonBlockingClient"
+    
+    <target name="run.client.servicewithmodule" depends="compile">
+        <java classname="userguide.clients.ClientForWebServiceWithModule"
               classpathref="axis.classpath" fork="true">
             <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
         </java>
     </target>
     
+    <target name="run.client">
+	<echo message="Please use the following ant targets to run the clients" />
+	<echo message="run.client.ping" />
+	<echo message="run.client.blocking" />
+	<echo message="run.client.blockingdual" />
+	<echo message="run.client.nonblocking" />
+	<echo message="run.client.nonblockingdual" />
+	<echo message="run.client.servicewithmodule" />
+	<echo message="run.client.all  -  run all clients" />
+    </target>
     <target name="clean">
 	<delete dir="build" />
     </target>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message