| <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 deprecation_mediator sample |
| |
| ant StockQuote [Symbol] [webserviceurl] [synapseurl] {optional[repository]} |
| Use the smart client - Synapse in WS-Addressing router mode |
| |
| ant synapse |
| -Dport |
| The port on which Synapse should listen, as provided in the synapseurl. |
| Default is 8080. |
| |
| </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="repository" value="../../synapse_repository"/> |
| |
| <property name="class.dir" value="target/classes"/> |
| |
| <path id="axis.classpath"> |
| <fileset dir="../../lib"> |
| <include name="*.jar"/> |
| </fileset> |
| </path> |
| |
| <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="javac.classpath" fork="true"> |
| <arg value="${symbol}"/> |
| <arg value="${url}"/> |
| <arg value="${synapseurl}"/> |
| <arg value="${repository}"/> |
| </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> |
| |
| <target name="synapse"> |
| <property name="port" value="8080"/> |
| <java classname="org.apache.axis2.transport.http.SimpleHTTPServer" |
| classpathref="javac.classpath" fork="true"> |
| <arg value="../../synapse_repository"/> |
| <arg value="-p${port}"/> |
| </java> |
| </target> |
| |
| </project> |