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 13:16:44 UTC

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

Author: thilina
Date: Sun Oct 29 04:16:43 2006
New Revision: 468884

URL: http://svn.apache.org/viewvc?view=rev&rev=468884
Log:
adding new goal to compile the client and run. Also to clean. Sample is still showing an error

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

Modified: webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml?view=diff&rev=468884&r1=468883&r2=468884
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml Sun Oct 29 04:16:43 2006
@@ -1,15 +1,33 @@
-<project name="samples" default="run">
-    <property name="mainDir" value="../.."/>
+<project name="GoogleSpellCheckSample" default="run">
+    <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="./googleSpellcheck.jar"/>
+        <pathelement location="build/googleSpellcheck.jar"/>
     </path>
-    <target name="run">
+
+    <target name="compile">
+	<mkdir dir="${client.classes.dir}" />
+	<!-- Compile client -->
+	<javac srcdir="src" destdir="${client.classes.dir}">
+		<classpath refid="axis.classpath" />
+	</javac>
+	<jar destfile="${build.dir}/googleSpellcheck.jar">
+		<fileset dir="${build.dir}/classes"/>
+	</jar>
+    </target>
+    <target name="run" depends="compile">
         <java classname="sample.google.spellcheck.SuggestionForm"
               classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}"/>
+            <jvmarg value="-Daxis2.repo=${axis2.repo}"/>
         </java>
     </target>
-</project>
\ No newline at end of file
+    <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