You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by pz...@apache.org on 2006/01/18 12:12:10 UTC
svn commit: r370122 -
/incubator/synapse/trunk/java/scripts/userguide/build.xml
Author: pzf
Date: Wed Jan 18 03:12:04 2006
New Revision: 370122
URL: http://svn.apache.org/viewcvs?rev=370122&view=rev
Log:
serious update of build.xml
Modified:
incubator/synapse/trunk/java/scripts/userguide/build.xml
Modified: incubator/synapse/trunk/java/scripts/userguide/build.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/userguide/build.xml?rev=370122&r1=370121&r2=370122&view=diff
==============================================================================
--- incubator/synapse/trunk/java/scripts/userguide/build.xml (original)
+++ incubator/synapse/trunk/java/scripts/userguide/build.xml Wed Jan 18 03:12:04 2006
@@ -1,35 +1,94 @@
-<project name="samples" default="StockQuoteClient">
- <property name="arg1" value="IBM"/>
- <property name="arg2" value="http://www.webservicex.net/stockquote.asmx"/>
- <property name="arg3" value="http://localhost:8080"/>
+<project name="samples" default="help">
+<target name="help">
+<echo>
+This script requires Ant 1.5 or higher
+
+usage:
+ ant -help display ant help screen
+ ant help display this message
+ ant clean delete the built directory
+
+ ant compile build the samples
+
+ ant StockQuote [Symbol] [webserviceurl] [synapseurl]
+ Use the smart client - Synapse in WS-Addressing router mode
+
+ ant ProxyStockQuote [Symbol] [webserviceurl] [synapseurl]
+ Use the http proxy client - Synapse in "transparent mode"
+
+ ant DumbStockQuote [Symbol] [synapseurl]
+ Use the dumb soap client - Synapse in "gateway" mode
+
+ </echo>
+</target>
+
+ <property name="symbol" value="IBM"/>
+ <property name="url" value="http://www.webservicex.net/stockquote.asmx"/>
+ <property name="synapseurl" value="http://localhost:8080"/>
+
+ <property name="class.dir" value="target/classes"/>
<path id="axis.classpath">
<fileset dir="../../lib">
<include name="*.jar"/>
</fileset>
- <pathelement location="sample_userguide.jar"/>
</path>
- <target name="StockQuoteClient">
+ <target name="clean">
+ <delete dir="target" quiet="true"/>
+ <delete dir="${class.dir}" quiet="true"/>
+ </target>
+
+
+
+ <target name="StockQuote" depends="compile">
<java classname="samples.userguide.StockQuoteClient"
classpathref="axis.classpath" fork="true">
- <arg value="${arg1}"/>
- <arg value="${arg2}"/>
- <arg value="${arg3}"/>
+ <arg value="${symbol}"/>
+ <arg value="${url}"/>
+ <arg value="${synapseurl}"/>
</java>
</target>
- <target name="synapse">
- <java classname="org.apache.axis2.transport.http.SimpleHTTPServer"
+ <target name="ProxyStockQuote" depends="compile">
+ <java classname="samples.userguide.ProxyStockQuoteClient"
+ classpathref="axis.classpath" fork="true">
+ <arg value="${symbol}"/>
+ <arg value="${url}"/>
+ <arg value="${synapseurl}"/>
+ </java>
+ </target>
+
+ <target name="DumbQuoteClient" depends="compile">
+ <java classname="samples.userguide.DumbStockQuoteClient"
classpathref="axis.classpath" fork="true">
- <arg value="../../synapse_repository"/>
- <arg value="8080"/>
+ <arg value="${symbol}"/>
+ <arg value="${url}"/>
</java>
</target>
- <target name="log_with_addressing">
+ <target name="log_with_addressing" depends="compile">
<java classname="samples.userguide.log.LoggingClient"
classpathref="axis.classpath" fork="true">
</java>
</target>
+
+ <target name="init">
+ <mkdir dir="${class.dir}"/>
+ <mkdir dir="src/ddl"/>
+
+ <path id="javac.classpath">
+ <pathelement path="${class.dir}"/>
+ <fileset dir="../../lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+ </target>
+
+ <target name="compile" depends="init" description="Compile all Java">
+ <javac srcdir="src" destdir="${class.dir}">
+ <classpath refid="javac.classpath"/>
+ </javac>
+ </target>
+
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org