You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by th...@apache.org on 2006/10/29 14:07:31 UTC

svn commit: r468895 - /webservices/axis2/branches/java/1_1/modules/samples/mtomsample/build.xml

Author: thilina
Date: Sun Oct 29 05:07:31 2006
New Revision: 468895

URL: http://svn.apache.org/viewvc?view=rev&rev=468895
Log:
getting the MTOM File Transfer Sample to a runnable state.. Added new goals to the ant script to run client, build service

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

Modified: webservices/axis2/branches/java/1_1/modules/samples/mtomsample/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtomsample/build.xml?view=diff&rev=468895&r1=468894&r2=468895
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtomsample/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtomsample/build.xml Sun Oct 29 05:07:31 2006
@@ -1,21 +1,46 @@
-<project name="samples" default="mtomSample">
-    <property name="mainDir" value="../.."/>
+<project name="FileTransferSample" default="service">
+    <property environment="env" />
+    <property name="axis2.home" value="../../"/>
+    <property name="axis2.repo" value="${axis2.home}/repository"/>
+    <property name="build.dir" value="build" />
+    <property name="client.classes.dir" value="${build.dir}/classes" />
     <path id="axis.classpath">
-        <fileset dir="../../lib">
+        <fileset dir="${axis2.home}/lib">
             <include name="*.jar"/>
         </fileset>
+        <pathelement location="build/mtomSampleClient.jar"/>
     </path>
-    <path id="mtom.classpath">
-        <pathelement location="./mtomClient.jar"/>
-    </path>
-    <path id="sample.classpath">
-        <path refid="axis.classpath"/>
-        <path refid="mtom.classpath"/>
-    </path>
-    <target name="mtomSample">
+
+<target name="service" depends="compile">
+        <jar destfile="${build.dir}/mtomSample.aar">
+            <fileset dir="src/sample/mtom/filetransfer/service/">
+                <include name="META-INF/services.xml"/>
+            </fileset>
+            <fileset dir="${build.dir}/classes">
+                <include name="sample/mtom/filetransfer/service/**/*.class"/>
+            </fileset>
+        </jar>
+	</target>
+
+    <target name="compile">
+	<mkdir dir="${client.classes.dir}" />
+	<!-- Compile client -->
+	<javac srcdir="src" destdir="${client.classes.dir}">
+		<classpath refid="axis.classpath" />
+	</javac>
+    </target>
+    <target name="client" depends="compile">
+	<jar destfile="${build.dir}/mtomSampleClient.jar">
+<fileset dir="${build.dir}/classes">
+                <include name="sample/mtom/filetransfer/client/**/*.class"/>
+            </fileset>
+	</jar>
         <java classname="sample.mtom.filetransfer.client.MTOMClient"
-              classpathref="sample.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}"/>
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${axis2.repo}"/>
         </java>
     </target>
+    <target name="clean">
+	<delete dir="build" />
+     </target>
 </project>



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