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 di...@apache.org on 2006/11/15 19:16:07 UTC
svn commit: r475341 [8/15] - in /webservices/axis2/branches/java/new-trunk:
./ modules/adb-codegen/ modules/adb/
modules/addressing/test-resources/invalid-cardinality-messages/final/
modules/addressing/test-resources/invalid-cardinality-messages/submis...
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/databinding/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/databinding/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/databinding/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/databinding/build.xml Wed Nov 15 10:15:56 2006
@@ -1,170 +1,170 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
-
- <property name="wsdl.uri" value="StockQuoteService.wsdl"/>
- <property name="service.target" value="build/service"/>
- <property name="client.target" value="build/client"/>
-
- <path id="axis2.classpath">
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <macrodef name="CastorSourceGenerator">
- <attribute name="schema" default="NOT SET"/>
- <attribute name="package" default="NOT SET"/>
- <attribute name="output" default="NOT SET"/>
- <sequential>
- <echo/>
- <java classname="org.exolab.castor.builder.SourceGeneratorMain" fork="true">
- <classpath refid="axis2.classpath"/>
- <arg line="-i @{schema} -package @{package} -dest @{output}" />
- </java>
- </sequential>
- </macrodef>
-
- <!-- Build the service, then the client. -->
- <target name="jar">
- <ant dir="service" target="jar.server"/>
- <ant dir="client"/>
- </target>
-
- <target name="run.client" depends="generate.stub">
-
- <condition property="params.ok">
- <and>
- <isset property="url"/>
- <isset property="symbol"/>
- </and>
- </condition>
-
- <fail message="One of the parameters are not set. Usage: StockClient -Durl=<url> -Dsymbol=<symbol>"
- unless="params.ok"/>
-
- <java classname="samples.databinding.StockClient" fork="true">
- <arg line="${url} ${symbol}"/>
- <classpath>
- <pathelement location="${client.target}/StockService-test-client.jar"/>
- <path refid="axis2.classpath"/>
- </classpath>
- </java>
- </target>
-
- <target name="generate.all" depends="generate.service,generate.stub"/>
-
- <target name="generate.service">
-
- <delete dir="${service.target}"/>
- <mkdir dir="${service.target}"/>
- <mkdir dir="${service.target}/classes"/>
-
- <CastorSourceGenerator output="${service.target}/src"
- package="samples.databinding.data"
- schema="StockQuote.xsd"/>
- <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" classpathref="axis2.classpath">
- <arg line="-uri ${wsdl.uri}"/>
- <arg line="-ss"/>
- <arg line="-sd"/>
- <arg line="-p samples.databinding"/>
- <arg line="-d none"/>
- <arg line="-o ${service.target}"/>
- </java>
-
- <!--copy the already written skeleton class-->
- <copy todir="${service.target}/src/"
- overwrite="yes">
- <fileset dir="service/src">
- <include name="**/*.java"/>
- </fileset>
- </copy>
-
- <!--First let's compile the classes-->
- <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
- destdir="${service.target}/classes" srcdir="${service.target}/src"
- classpathref="axis2.classpath">
- </javac>
-
- <!--aar them up -->
- <copy toDir="${service.target}/classes/META-INF" failonerror="false">
- <fileset dir="${service.target}/resources">
- <include name="*.xml"/>
- <include name="*.wsdl"/>
- <include name="*.xsd"/>
- </fileset>
- </copy>
- <jar destfile="${service.target}/StockService.aar">
- <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
- <fileset dir="${basedir}">
- <include name="lib/*.jar"/>
- </fileset>
- </jar>
-
- <copy file="${service.target}/StockService.aar" tofile="../../repository/services/StockService.aar"
- overwrite="true"/>
-
- </target>
-
- <target name="generate.stub" unless="skip.generate">
- <delete dir="${client.target}"/>
- <mkdir dir="${client.target}"/>
- <mkdir dir="${client.target}/classes"/>
-
-
- <CastorSourceGenerator output="${client.target}/src"
- package="samples.databinding.data"
- schema="StockQuote.xsd"/>
- <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" classpathref="axis2.classpath">
- <arg line="-uri ${wsdl.uri}"/>
- <arg line="-u"/>
- <arg line="-p samples.databinding"/>
- <arg line="-d none"/>
- <arg line="-t"/>
- <arg line="-o ${client.target}"/>
- </java>
-
- <copy todir="${client.target}/src/"
- overwrite="yes">
- <fileset dir="client/src">
- <include name="**/*.java"/>
- </fileset>
- </copy>
-
- <!--now compile the stub classes-->
- <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
- srcdir="${client.target}/src"
- excludes="**/StockClient2*.*"
- destdir="${client.target}/classes"
- classpathref="axis2.classpath">
- </javac>
-
- <!--jar the compiled stuff-->
- <jar destfile="${client.target}/StockService-test-client.jar">
- <fileset dir="${client.target}/classes">
- <exclude name="**/META-INF/*.*"/>
- <exclude name="**/*MessageReceiver.class"/>
- <exclude name="**/*Skeleton.class"/>
- </fileset>
- </jar>
- </target>
-
- <!--We are not shipping castor and stax-utils jars with the release. This target can be used to
- download those jars that are required to run this sample.-->
- <target name="download.jars">
- <mkdir dir="lib"/>
-
- <get src="http://ws.zones.apache.org/repository/stax-utils/jars/stax-utils-20060915.jar"
- dest="lib/stax-utils-20060915.jar" verbose="true"/>
- <get src="http://dist.codehaus.org/castor/1.0.4/castor-1.0.4.jar" dest="lib/castor-1.0.4.jar"
- verbose="true"/>
- </target>
-
- <target name="clean">
- <delete dir="build"/>
- </target>
-
-</project>
+<project basedir="." default="generate.service">
+
+ <property environment="env"/>
+
+ <property name="wsdl.uri" value="StockQuoteService.wsdl"/>
+ <property name="service.target" value="build/service"/>
+ <property name="client.target" value="build/client"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <macrodef name="CastorSourceGenerator">
+ <attribute name="schema" default="NOT SET"/>
+ <attribute name="package" default="NOT SET"/>
+ <attribute name="output" default="NOT SET"/>
+ <sequential>
+ <echo/>
+ <java classname="org.exolab.castor.builder.SourceGeneratorMain" fork="true">
+ <classpath refid="axis2.classpath"/>
+ <arg line="-i @{schema} -package @{package} -dest @{output}" />
+ </java>
+ </sequential>
+ </macrodef>
+
+ <!-- Build the service, then the client. -->
+ <target name="jar">
+ <ant dir="service" target="jar.server"/>
+ <ant dir="client"/>
+ </target>
+
+ <target name="run.client" depends="generate.stub">
+
+ <condition property="params.ok">
+ <and>
+ <isset property="url"/>
+ <isset property="symbol"/>
+ </and>
+ </condition>
+
+ <fail message="One of the parameters are not set. Usage: StockClient -Durl=<url> -Dsymbol=<symbol>"
+ unless="params.ok"/>
+
+ <java classname="samples.databinding.StockClient" fork="true">
+ <arg line="${url} ${symbol}"/>
+ <classpath>
+ <pathelement location="${client.target}/StockService-test-client.jar"/>
+ <path refid="axis2.classpath"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="generate.all" depends="generate.service,generate.stub"/>
+
+ <target name="generate.service">
+
+ <delete dir="${service.target}"/>
+ <mkdir dir="${service.target}"/>
+ <mkdir dir="${service.target}/classes"/>
+
+ <CastorSourceGenerator output="${service.target}/src"
+ package="samples.databinding.data"
+ schema="StockQuote.xsd"/>
+ <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" classpathref="axis2.classpath">
+ <arg line="-uri ${wsdl.uri}"/>
+ <arg line="-ss"/>
+ <arg line="-sd"/>
+ <arg line="-p samples.databinding"/>
+ <arg line="-d none"/>
+ <arg line="-o ${service.target}"/>
+ </java>
+
+ <!--copy the already written skeleton class-->
+ <copy todir="${service.target}/src/"
+ overwrite="yes">
+ <fileset dir="service/src">
+ <include name="**/*.java"/>
+ </fileset>
+ </copy>
+
+ <!--First let's compile the classes-->
+ <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
+ destdir="${service.target}/classes" srcdir="${service.target}/src"
+ classpathref="axis2.classpath">
+ </javac>
+
+ <!--aar them up -->
+ <copy toDir="${service.target}/classes/META-INF" failonerror="false">
+ <fileset dir="${service.target}/resources">
+ <include name="*.xml"/>
+ <include name="*.wsdl"/>
+ <include name="*.xsd"/>
+ </fileset>
+ </copy>
+ <jar destfile="${service.target}/StockService.aar">
+ <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
+ <fileset dir="${basedir}">
+ <include name="lib/*.jar"/>
+ </fileset>
+ </jar>
+
+ <copy file="${service.target}/StockService.aar" tofile="../../repository/services/StockService.aar"
+ overwrite="true"/>
+
+ </target>
+
+ <target name="generate.stub" unless="skip.generate">
+ <delete dir="${client.target}"/>
+ <mkdir dir="${client.target}"/>
+ <mkdir dir="${client.target}/classes"/>
+
+
+ <CastorSourceGenerator output="${client.target}/src"
+ package="samples.databinding.data"
+ schema="StockQuote.xsd"/>
+ <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" classpathref="axis2.classpath">
+ <arg line="-uri ${wsdl.uri}"/>
+ <arg line="-u"/>
+ <arg line="-p samples.databinding"/>
+ <arg line="-d none"/>
+ <arg line="-t"/>
+ <arg line="-o ${client.target}"/>
+ </java>
+
+ <copy todir="${client.target}/src/"
+ overwrite="yes">
+ <fileset dir="client/src">
+ <include name="**/*.java"/>
+ </fileset>
+ </copy>
+
+ <!--now compile the stub classes-->
+ <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
+ srcdir="${client.target}/src"
+ excludes="**/StockClient2*.*"
+ destdir="${client.target}/classes"
+ classpathref="axis2.classpath">
+ </javac>
+
+ <!--jar the compiled stuff-->
+ <jar destfile="${client.target}/StockService-test-client.jar">
+ <fileset dir="${client.target}/classes">
+ <exclude name="**/META-INF/*.*"/>
+ <exclude name="**/*MessageReceiver.class"/>
+ <exclude name="**/*Skeleton.class"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <!--We are not shipping castor and stax-utils jars with the release. This target can be used to
+ download those jars that are required to run this sample.-->
+ <target name="download.jars">
+ <mkdir dir="lib"/>
+
+ <get src="http://ws.zones.apache.org/repository/stax-utils/jars/stax-utils-20060915.jar"
+ dest="lib/stax-utils-20060915.jar" verbose="true"/>
+ <get src="http://dist.codehaus.org/castor/1.0.4/castor-1.0.4.jar" dest="lib/castor-1.0.4.jar"
+ verbose="true"/>
+ </target>
+
+ <target name="clean">
+ <delete dir="build"/>
+ </target>
+
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/amazonqs/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/amazonqs/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/amazonqs/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/amazonqs/build.xml Wed Nov 15 10:15:56 2006
@@ -1,22 +1,22 @@
-<project name="samples" default="all">
- <property name="mainDir" value="../.."/>
- <path id="axis.classpath">
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- <pathelement location="./amazonQS.jar"/>
- </path>
- <target name="cq">
- <java classname="sample.amazon.amazonSimpleQueueService.RunGUICQ"
- classpathref="axis.classpath" fork="true">
- <jvmarg value="-Daxis2.repo=${mainDir}"/>
- </java>
- </target>
- <target name="rq">
- <java classname="sample.amazon.amazonSimpleQueueService.RunGUIRQ"
- classpathref="axis.classpath" fork="true">
- <jvmarg value="-Daxis2.repo=${mainDir}"/>
- </java>
- </target>
- <target name="all" depends="cq,rq"/>
-</project>
+<project name="samples" default="all">
+ <property name="mainDir" value="../.."/>
+ <path id="axis.classpath">
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement location="./amazonQS.jar"/>
+ </path>
+ <target name="cq">
+ <java classname="sample.amazon.amazonSimpleQueueService.RunGUICQ"
+ classpathref="axis.classpath" fork="true">
+ <jvmarg value="-Daxis2.repo=${mainDir}"/>
+ </java>
+ </target>
+ <target name="rq">
+ <java classname="sample.amazon.amazonSimpleQueueService.RunGUIRQ"
+ classpathref="axis.classpath" fork="true">
+ <jvmarg value="-Daxis2.repo=${mainDir}"/>
+ </java>
+ </target>
+ <target name="all" depends="cq,rq"/>
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/googlesearch/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/googlesearch/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/googlesearch/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/googlesearch/build.xml Wed Nov 15 10:15:56 2006
@@ -1,15 +1,15 @@
-<project name="samples" default="run">
- <property name="mainDir" value="../.."/>
- <path id="axis.classpath">
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- <pathelement location="./googleSearch.jar"/>
- </path>
- <target name="run">
- <java classname="sample.google.search.AsynchronousClient"
- classpathref="axis.classpath" fork="true">
- <jvmarg value="-Daxis2.repo=${mainDir}"/>
- </java>
- </target>
+<project name="samples" default="run">
+ <property name="mainDir" value="../.."/>
+ <path id="axis.classpath">
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement location="./googleSearch.jar"/>
+ </path>
+ <target name="run">
+ <java classname="sample.google.search.AsynchronousClient"
+ classpathref="axis.classpath" fork="true">
+ <jvmarg value="-Daxis2.repo=${mainDir}"/>
+ </java>
+ </target>
</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/build.xml Wed Nov 15 10:15:56 2006
@@ -1,45 +1,45 @@
-<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="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- <pathelement location="build/mtomSampleClient.jar" />
- </path>
-
- <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="axis.classpath" fork="true">
- <jvmarg value="-Daxis2.repo=${axis2.repo}" />
- </java>
- </target>
- <target name="clean">
- <delete dir="build" />
- </target>
-</project>
+<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="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <pathelement location="build/mtomSampleClient.jar" />
+ </path>
+
+ <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="axis.classpath" fork="true">
+ <jvmarg value="-Daxis2.repo=${axis2.repo}" />
+ </java>
+ </target>
+ <target name="clean">
+ <delete dir="build" />
+ </target>
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml Wed Nov 15 10:15:56 2006
@@ -1,30 +1,30 @@
-<service name="MTOMService">
- <description>
- This is a sample Web Service for illustrating MTOM based binary data transfer.
- </description>
- <parameter name="ServiceClass" locked="false">sample.mtom.filetransfer.service.MTOMService</parameter>
- <operation name="uploadFileUsingMTOM">
- <parameter name="enableMTOM" locked="false">true</parameter>
- <parameter name="enableSwA" locked="false">false</parameter>
- <actionMapping>urn:uploadFileUsingMTOM</actionMapping>
- <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- </operation>
- <operation name="uploadFileUsingSwA">
- <parameter name="enableMTOM" locked="false">false</parameter>
- <parameter name="enableSwA" locked="false">true</parameter>
- <actionMapping>urn:uploadFileUsingSwA</actionMapping>
- <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- </operation>
- <operation name="sendReceiveUsingMTOM">
- <parameter name="enableMTOM" locked="false">true</parameter>
- <parameter name="enableSwA" locked="false">false</parameter>
- <actionMapping>urn:sendReceiveUsingMTOM</actionMapping>
- <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- </operation>
- <operation name="sendReceiveUsingSwA">
- <parameter name="enableMTOM" locked="false">false</parameter>
- <parameter name="enableSwA" locked="false">true</parameter>
- <actionMapping>urn:sendReceiveUsingSwA</actionMapping>
- <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- </operation>
+<service name="MTOMService">
+ <description>
+ This is a sample Web Service for illustrating MTOM based binary data transfer.
+ </description>
+ <parameter name="ServiceClass" locked="false">sample.mtom.filetransfer.service.MTOMService</parameter>
+ <operation name="uploadFileUsingMTOM">
+ <parameter name="enableMTOM" locked="false">true</parameter>
+ <parameter name="enableSwA" locked="false">false</parameter>
+ <actionMapping>urn:uploadFileUsingMTOM</actionMapping>
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
+ <operation name="uploadFileUsingSwA">
+ <parameter name="enableMTOM" locked="false">false</parameter>
+ <parameter name="enableSwA" locked="false">true</parameter>
+ <actionMapping>urn:uploadFileUsingSwA</actionMapping>
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
+ <operation name="sendReceiveUsingMTOM">
+ <parameter name="enableMTOM" locked="false">true</parameter>
+ <parameter name="enableSwA" locked="false">false</parameter>
+ <actionMapping>urn:sendReceiveUsingMTOM</actionMapping>
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
+ <operation name="sendReceiveUsingSwA">
+ <parameter name="enableMTOM" locked="false">false</parameter>
+ <parameter name="enableSwA" locked="false">true</parameter>
+ <actionMapping>urn:sendReceiveUsingSwA</actionMapping>
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
</service>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/faulthandling/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/faulthandling/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/faulthandling/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/faulthandling/build.xml Wed Nov 15 10:15:56 2006
@@ -1,135 +1,135 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
-
- <property name="wsdl.uri" value="bank.wsdl"/>
- <property name="service.target" value="build/service"/>
- <property name="client.target" value="build/client"/>
-
- <!-- Build the service, then the client. -->
- <target name="jar">
- <ant dir="service" target="jar.server"/>
- <ant dir="client"/>
- </target>
-
- <target name="run.client" depends="gen.stub">
-
- <condition property="params.ok">
- <and>
- <isset property="url"/>
- <isset property="account"/>
- <isset property="amt"/>
- </and>
- </condition>
-
- <fail message="One of the parameters are not set. Usage: BankClient -Durl=<url> -Daccount=<account> -Damt=<amount>"
- unless="params.ok"/>
-
- <java classname="example.BankClient" fork="true">
- <arg line="${url} ${account} ${amt}"/>
- <classpath>
- <pathelement location="${client.target}/BankService-test-client.jar"/>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </java>
- </target>
-
- <target name="generate.all" depends="generate.service,gen.stub"/>
-
- <target name="generate.service">
-
- <delete dir="${service.target}"/>
- <mkdir dir="${service.target}"/>
- <mkdir dir="${service.target}/classes"/>
-
- <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
- <arg line="-uri ${wsdl.uri}"/>
- <arg line="-ss"/>
- <arg line="-sd"/>
- <arg line="-o ${service.target}"/>
- <!-- Output directory in which to generate files --> <!-- NB it generates to the src folder under this directory!! -->
- <classpath>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </java>
-
- <!--copy the already written skeleton class-->
- <copy file="service/src/example/BankServiceSkeleton.java"
- todir="${service.target}/src/example"
- overwrite="yes"/>
-
- <!--First let's compile the classes-->
- <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
- destdir="${service.target}/classes" srcdir="${service.target}/src">
- <classpath>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </javac>
-
- <!--aar them up -->
- <copy toDir="${service.target}/classes/META-INF" failonerror="false">
- <fileset dir="${service.target}/resources">
- <include name="*.xml"/>
- <include name="*.wsdl"/>
- <include name="*.xsd"/>
- </fileset>
- </copy>
- <jar destfile="${service.target}/BankService.aar">
- <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
- </jar>
-
- <copy file="${service.target}/BankService.aar" tofile="../../repository/services/sample-faulthandling.aar"
- overwrite="true"/>
-
- </target>
-
- <target name="gen.stub">
- <delete dir="${client.target}"/>
- <mkdir dir="${client.target}"/>
- <mkdir dir="${client.target}/classes"/>
- <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
- <arg line="-uri ${wsdl.uri}"/>
- <arg line="-u"/>
- <arg line="-o ${client.target}"/>
- <classpath>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </java>
-
- <copy file="client/src/example/BankClient.java" todir="${client.target}/src/example"/>
-
- <!--now compile the stub classes-->
- <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
- destdir="${client.target}/classes">
- <src path="${client.target}/src"/>
- <classpath>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </javac>
-
- <!--jar the compiled stuff-->
- <jar destfile="${client.target}/BankService-test-client.jar">
- <fileset dir="${client.target}/classes">
- <exclude name="**/META-INF/*.*"/>
- <exclude name="**/lib/*.*"/>
- <exclude name="**/*MessageReceiver.class"/>
- <exclude name="**/*Skeleton.class"/>
- </fileset>
- </jar>
- </target>
-
- <target name="clean">
- <delete dir="build"/>
- </target>
-
-</project>
+<project basedir="." default="generate.service">
+
+ <property environment="env"/>
+
+ <property name="wsdl.uri" value="bank.wsdl"/>
+ <property name="service.target" value="build/service"/>
+ <property name="client.target" value="build/client"/>
+
+ <!-- Build the service, then the client. -->
+ <target name="jar">
+ <ant dir="service" target="jar.server"/>
+ <ant dir="client"/>
+ </target>
+
+ <target name="run.client" depends="gen.stub">
+
+ <condition property="params.ok">
+ <and>
+ <isset property="url"/>
+ <isset property="account"/>
+ <isset property="amt"/>
+ </and>
+ </condition>
+
+ <fail message="One of the parameters are not set. Usage: BankClient -Durl=<url> -Daccount=<account> -Damt=<amount>"
+ unless="params.ok"/>
+
+ <java classname="example.BankClient" fork="true">
+ <arg line="${url} ${account} ${amt}"/>
+ <classpath>
+ <pathelement location="${client.target}/BankService-test-client.jar"/>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="generate.all" depends="generate.service,gen.stub"/>
+
+ <target name="generate.service">
+
+ <delete dir="${service.target}"/>
+ <mkdir dir="${service.target}"/>
+ <mkdir dir="${service.target}/classes"/>
+
+ <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+ <arg line="-uri ${wsdl.uri}"/>
+ <arg line="-ss"/>
+ <arg line="-sd"/>
+ <arg line="-o ${service.target}"/>
+ <!-- Output directory in which to generate files --> <!-- NB it generates to the src folder under this directory!! -->
+ <classpath>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </java>
+
+ <!--copy the already written skeleton class-->
+ <copy file="service/src/example/BankServiceSkeleton.java"
+ todir="${service.target}/src/example"
+ overwrite="yes"/>
+
+ <!--First let's compile the classes-->
+ <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
+ destdir="${service.target}/classes" srcdir="${service.target}/src">
+ <classpath>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </javac>
+
+ <!--aar them up -->
+ <copy toDir="${service.target}/classes/META-INF" failonerror="false">
+ <fileset dir="${service.target}/resources">
+ <include name="*.xml"/>
+ <include name="*.wsdl"/>
+ <include name="*.xsd"/>
+ </fileset>
+ </copy>
+ <jar destfile="${service.target}/BankService.aar">
+ <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
+ </jar>
+
+ <copy file="${service.target}/BankService.aar" tofile="../../repository/services/sample-faulthandling.aar"
+ overwrite="true"/>
+
+ </target>
+
+ <target name="gen.stub">
+ <delete dir="${client.target}"/>
+ <mkdir dir="${client.target}"/>
+ <mkdir dir="${client.target}/classes"/>
+ <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+ <arg line="-uri ${wsdl.uri}"/>
+ <arg line="-u"/>
+ <arg line="-o ${client.target}"/>
+ <classpath>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </java>
+
+ <copy file="client/src/example/BankClient.java" todir="${client.target}/src/example"/>
+
+ <!--now compile the stub classes-->
+ <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
+ destdir="${client.target}/classes">
+ <src path="${client.target}/src"/>
+ <classpath>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </javac>
+
+ <!--jar the compiled stuff-->
+ <jar destfile="${client.target}/BankService-test-client.jar">
+ <fileset dir="${client.target}/classes">
+ <exclude name="**/META-INF/*.*"/>
+ <exclude name="**/lib/*.*"/>
+ <exclude name="**/*MessageReceiver.class"/>
+ <exclude name="**/*Skeleton.class"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="clean">
+ <delete dir="build"/>
+ </target>
+
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/googlespellcheck/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/googlespellcheck/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/googlespellcheck/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/googlespellcheck/build.xml Wed Nov 15 10:15:56 2006
@@ -1,95 +1,95 @@
-
-<project basedir="." default="run.client">
-
- <property name="wsdl" value="http://tools.wso2.net:12001/axis2/services/SimplifiedSpellCheck?wsdl" />
-
- <property name="dest.dir" value="build" />
-
- <property name="dest.dir.classes" value="${dest.dir}/classes" />
-
- <property name="dest.dir.lib" value="${dest.dir}/lib" />
-
- <property name="axis2.home" value="../../" />
-
- <path id="client.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${dest.dir.lib}" includes="*.jar" />
- </path>
-
- <path id="build.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- </path>
-
- <target name="clean">
-
- <delete dir="${dest.dir}" />
-
- <delete dir="src" includes="sample/spellcheck/stub/**"/>
-
- </target>
-
- <target name="prepare">
-
- <mkdir dir="${dest.dir}" />
-
- <mkdir dir="${dest.dir.classes}" />
-
- <mkdir dir="${dest.dir.lib}" />
-
- </target>
-
- <target name="run.client" depends="clean,prepare">
-
- <antcall target="client.codegen-stub">
- <param name="wsdl" value="${wsdl}"/>
- </antcall>
-
- <antcall target="client.compile" />
-
- <antcall target="client.jar" />
-
- <antcall target="client.run" />
- </target>
-
- <target name="client.codegen-stub">
-
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="${wsdl}" />
- <arg value="-p" />
- <arg value="sample.spellcheck.stub" />
- <arg value="-o" />
- <arg value="src" />
- <arg value="-f"/>
- <classpath refid="build.class.path" />
- </java>
-
- </target>
-
- <target name="client.compile">
-
- <javac srcdir="src" destdir="${dest.dir.classes}">
- <classpath refid="build.class.path" />
- </javac>
-
- </target>
-
- <target name="client.jar">
-
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/editor.jar" />
-
- </target>
-
- <target name="client.run">
-
- <java classname="sample.spellcheck.editor.SuggestionForm" fork="true">
- <classpath refid="client.class.path" />
- </java>
-
- </target>
-
+
+<project basedir="." default="run.client">
+
+ <property name="wsdl" value="http://tools.wso2.net:12001/axis2/services/SimplifiedSpellCheck?wsdl" />
+
+ <property name="dest.dir" value="build" />
+
+ <property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+ <property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+ <property name="axis2.home" value="../../" />
+
+ <path id="client.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${dest.dir.lib}" includes="*.jar" />
+ </path>
+
+ <path id="build.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <target name="clean">
+
+ <delete dir="${dest.dir}" />
+
+ <delete dir="src" includes="sample/spellcheck/stub/**"/>
+
+ </target>
+
+ <target name="prepare">
+
+ <mkdir dir="${dest.dir}" />
+
+ <mkdir dir="${dest.dir.classes}" />
+
+ <mkdir dir="${dest.dir.lib}" />
+
+ </target>
+
+ <target name="run.client" depends="clean,prepare">
+
+ <antcall target="client.codegen-stub">
+ <param name="wsdl" value="${wsdl}"/>
+ </antcall>
+
+ <antcall target="client.compile" />
+
+ <antcall target="client.jar" />
+
+ <antcall target="client.run" />
+ </target>
+
+ <target name="client.codegen-stub">
+
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="${wsdl}" />
+ <arg value="-p" />
+ <arg value="sample.spellcheck.stub" />
+ <arg value="-o" />
+ <arg value="src" />
+ <arg value="-f"/>
+ <classpath refid="build.class.path" />
+ </java>
+
+ </target>
+
+ <target name="client.compile">
+
+ <javac srcdir="src" destdir="${dest.dir.classes}">
+ <classpath refid="build.class.path" />
+ </javac>
+
+ </target>
+
+ <target name="client.jar">
+
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/editor.jar" />
+
+ </target>
+
+ <target name="client.run">
+
+ <java classname="sample.spellcheck.editor.SuggestionForm" fork="true">
+ <classpath refid="client.class.path" />
+ </java>
+
+ </target>
+
</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/mtom/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/mtom/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/mtom/build.xml Wed Nov 15 10:15:56 2006
@@ -1,124 +1,124 @@
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
-<project basedir="." default="generate.service">
-
- <property environment="env" />
- <property name="build.dir" value="build" />
- <property name="client.dir" value="${build.dir}/client" />
- <property name="service.dir" value="${build.dir}/service" />
- <property name="client.classes.dir" value="${client.dir}/classes" />
- <property name="skeleton.path" value="src/sample/mtom/service/MTOMSampleSkeleton.java" />
- <property name="client.path" value="src/sample/mtom/client/Client.java" />
- <!-- USE AXIS2_HOME FOR THIS -->
- <property name="lib.dir" value="../lib" />
-
- <path id="class.path">
- <fileset dir="../../lib">
- <include name="**/*.jar" />
- </fileset>
- </path>
-
- <!-- Create Service -->
- <target name="generate.service">
-
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="${basedir}/resources/MTOMSample.wsdl" />
- <arg value="-ss" />
- <arg value="-sd" />
- <arg value="-p" />
- <arg value="sample.mtom.service" />
- <arg value="-o" />
- <arg value="${service.dir}" />
- <classpath refid="class.path" />
- </java>
- <copy file="${skeleton.path}" tofile="${service.dir}/${skeleton.path}" overwrite="true" />
- <antcall target="jar.server"/>
- <copy file="${service.dir}/sample-mtom.aar" tofile="../../repository/services/sample-mtom.aar" overwrite="true"/>
- </target>
- <target name="check-parameters">
- <condition property="parameters.set">
- <and>
- <isset property="dest" />
- <isset property="file" />
- </and>
- </condition>
- <!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
- <antcall target="print-usage" />
- </target>
-
- <target name="print-usage" unless="parameters.set">
- <echo message="ant -Dfile <file to be transfered> -Ddest <name of the destination file>" />
- </target>
-
- <!-- Run Client -->
- <target name="run.client" depends="check-parameters" if="parameters.set">
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="resources/MTOMSample.wsdl" />
- <arg value="-p" />
- <arg value="sample.mtom.service" />
- <arg value="-o" />
- <arg value="${client.dir}" />
- <classpath refid="class.path" />
- </java>
-
- <copy file="${client.path}" tofile="${client.dir}/${client.path}" overwrite="true" />
-
- <mkdir dir="${client.classes.dir}" />
- <!-- Compile client -->
- <javac srcdir="${client.dir}/src" destdir="${client.classes.dir}">
- <classpath refid="class.path" />
- </javac>
-
- <!-- Run client -->
- <!-- Accept two arguments from the command line, Also use the class.path set earlier -->
- <java classname="sample.mtom.client.Client" fork="true">
- <arg value="-file" />
- <arg value="${file}" />
- <arg value="-dest" />
- <arg value="${dest}" />
- <classpath>
- <fileset dir="../../lib">
- <include name="**/*.jar" />
- </fileset>
- <dirset dir="${client.classes.dir}" />
- </classpath>
- </java>
- </target>
- <target name="jar.server">
- <mkdir dir="${service.dir}/classes" />
- <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true" destdir="${service.dir}/classes" srcdir="${service.dir}/src">
- <classpath refid="class.path"/>
- </javac>
-
- <copy toDir="${service.dir}/classes/META-INF" failonerror="false">
- <fileset dir="${service.dir}/resources">
- <include name="*.xml"/>
- <include name="*.wsdl"/>
- <include name="*.xsd"/>
- </fileset>
- </copy>
- <jar destfile="${service.dir}/sample-mtom.aar">
- <fileset excludes="**/Test.class" dir="${service.dir}/classes"/>
- </jar>
- </target>
- <target name="clean">
- <delete dir="build" />
- </target>
-</project>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<project basedir="." default="generate.service">
+
+ <property environment="env" />
+ <property name="build.dir" value="build" />
+ <property name="client.dir" value="${build.dir}/client" />
+ <property name="service.dir" value="${build.dir}/service" />
+ <property name="client.classes.dir" value="${client.dir}/classes" />
+ <property name="skeleton.path" value="src/sample/mtom/service/MTOMSampleSkeleton.java" />
+ <property name="client.path" value="src/sample/mtom/client/Client.java" />
+ <!-- USE AXIS2_HOME FOR THIS -->
+ <property name="lib.dir" value="../lib" />
+
+ <path id="class.path">
+ <fileset dir="../../lib">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+ <!-- Create Service -->
+ <target name="generate.service">
+
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="${basedir}/resources/MTOMSample.wsdl" />
+ <arg value="-ss" />
+ <arg value="-sd" />
+ <arg value="-p" />
+ <arg value="sample.mtom.service" />
+ <arg value="-o" />
+ <arg value="${service.dir}" />
+ <classpath refid="class.path" />
+ </java>
+ <copy file="${skeleton.path}" tofile="${service.dir}/${skeleton.path}" overwrite="true" />
+ <antcall target="jar.server"/>
+ <copy file="${service.dir}/sample-mtom.aar" tofile="../../repository/services/sample-mtom.aar" overwrite="true"/>
+ </target>
+ <target name="check-parameters">
+ <condition property="parameters.set">
+ <and>
+ <isset property="dest" />
+ <isset property="file" />
+ </and>
+ </condition>
+ <!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
+ <antcall target="print-usage" />
+ </target>
+
+ <target name="print-usage" unless="parameters.set">
+ <echo message="ant -Dfile <file to be transfered> -Ddest <name of the destination file>" />
+ </target>
+
+ <!-- Run Client -->
+ <target name="run.client" depends="check-parameters" if="parameters.set">
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="resources/MTOMSample.wsdl" />
+ <arg value="-p" />
+ <arg value="sample.mtom.service" />
+ <arg value="-o" />
+ <arg value="${client.dir}" />
+ <classpath refid="class.path" />
+ </java>
+
+ <copy file="${client.path}" tofile="${client.dir}/${client.path}" overwrite="true" />
+
+ <mkdir dir="${client.classes.dir}" />
+ <!-- Compile client -->
+ <javac srcdir="${client.dir}/src" destdir="${client.classes.dir}">
+ <classpath refid="class.path" />
+ </javac>
+
+ <!-- Run client -->
+ <!-- Accept two arguments from the command line, Also use the class.path set earlier -->
+ <java classname="sample.mtom.client.Client" fork="true">
+ <arg value="-file" />
+ <arg value="${file}" />
+ <arg value="-dest" />
+ <arg value="${dest}" />
+ <classpath>
+ <fileset dir="../../lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <dirset dir="${client.classes.dir}" />
+ </classpath>
+ </java>
+ </target>
+ <target name="jar.server">
+ <mkdir dir="${service.dir}/classes" />
+ <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true" destdir="${service.dir}/classes" srcdir="${service.dir}/src">
+ <classpath refid="class.path"/>
+ </javac>
+
+ <copy toDir="${service.dir}/classes/META-INF" failonerror="false">
+ <fileset dir="${service.dir}/resources">
+ <include name="*.xml"/>
+ <include name="*.wsdl"/>
+ <include name="*.xsd"/>
+ </fileset>
+ </copy>
+ <jar destfile="${service.dir}/sample-mtom.aar">
+ <fileset excludes="**/Test.class" dir="${service.dir}/classes"/>
+ </jar>
+ </target>
+ <target name="clean">
+ <delete dir="build" />
+ </target>
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/pojo/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/pojo/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/pojo/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/pojo/build.xml Wed Nov 15 10:15:56 2006
@@ -1,148 +1,148 @@
-
-<project basedir="." default="generate.service">
-
- <property name="dest.dir" value="build" />
-
- <property name="dest.dir.classes" value="${dest.dir}/classes" />
-
- <property name="dest.dir.lib" value="${dest.dir}/lib" />
-
- <property name="axis2.home" value="../../" />
-
- <property name="repository.path" value="${axis2.home}/repository/services" />
-
- <path id="build.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- </path>
-
- <path id="client.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${dest.dir.lib}">
- <include name="*.jar" />
- </fileset>
-
- </path>
- <target name="clean">
- <delete dir="${dest.dir}" />
- <delete dir="src" includes="sample/addressbook/stub/**"/>
- </target>
-
- <target name="prepare">
-
- <mkdir dir="${dest.dir}" />
-
- <mkdir dir="${dest.dir.classes}" />
-
- <mkdir dir="${dest.dir.lib}" />
-
- <mkdir dir="${dest.dir.classes}/META-INF" />
-
- </target>
-
- <target name="generate.service" depends="clean,prepare">
-
- <copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
-
- <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/service/**,sample/addressbook/entry/**">
- <classpath refid="build.class.path" />
- </javac>
-
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir}/AddressBookService.aar" />
-
- <copy file="${dest.dir}/AddressBookService.aar" tofile="${repository.path}/AddressBookService.aar" overwrite="true" />
-
- </target>
-
- <target name="rpc.client" depends="clean,prepare">
-
- <antcall target="rpc.client.compile" />
-
- <antcall target="rpc.client.jar" />
-
- <antcall target="rpc.client.run">
- <param name="uri" value="${uri}"/>
- </antcall>
-
- </target>
-
- <target name="rpc.client.compile">
- <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**">
- <classpath refid="build.class.path" />
- </javac>
- </target>
-
- <target name="rpc.client.jar">
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**" />
- </target>
-
- <target name="rpc.client.run">
- <java classname="sample.addressbook.rpcclient.AddressBookRPCClient">
- <classpath refid="client.class.path" />
- <arg value="${uri}" />
- </java>
- </target>
-
- <target name="check-parameters">
- <condition property="parameters.set">
- <and>
- <isset property="wsdl" />
- </and>
- </condition>
- <!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
- <antcall target="print-usage" />
- </target>
-
- <target name="print-usage" unless="parameters.set">
- <echo message="ant adb.client -Dwsdl='http://<yourhost>:<yourport>/axis2/services/AdressBookService?wsdl'" />
- </target>
-
- <target name="adb.client" depends="check-parameters" if="parameters.set">
-
- <antcall target="clean" />
- <antcall target="prepare" />
- <antcall target="adb.client.codegen-stub">
- <param name="wsdl" value="${wsdl}"/>
- </antcall>
-
- <antcall target="adb.client.compile" />
-
- <antcall target="adb.client.jar" />
-
- <antcall target="adb.client.run" />
-
- </target>
-
- <target name="adb.client.codegen-stub">
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="${wsdl}" />
- <arg value="-p" />
- <arg value="sample.addressbook.stub" />
- <arg value="-o" />
- <arg value="src" />
- <arg value="-f" />
- <classpath refid="build.class.path" />
- </java>
- </target>
-
- <target name="adb.client.compile">
- <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**">
- <classpath refid="build.class.path" />
- </javac>
- </target>
-
- <target name="adb.client.jar">
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/adb-client.jar" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**" />
- </target>
-
- <target name="adb.client.run">
- <java classname="sample.addressbook.adbclient.AddressBookADBClient">
- <classpath refid="client.class.path" />
- </java>
- </target>
-
-</project>
+
+<project basedir="." default="generate.service">
+
+ <property name="dest.dir" value="build" />
+
+ <property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+ <property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+ <property name="axis2.home" value="../../" />
+
+ <property name="repository.path" value="${axis2.home}/repository/services" />
+
+ <path id="build.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <path id="client.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${dest.dir.lib}">
+ <include name="*.jar" />
+ </fileset>
+
+ </path>
+ <target name="clean">
+ <delete dir="${dest.dir}" />
+ <delete dir="src" includes="sample/addressbook/stub/**"/>
+ </target>
+
+ <target name="prepare">
+
+ <mkdir dir="${dest.dir}" />
+
+ <mkdir dir="${dest.dir.classes}" />
+
+ <mkdir dir="${dest.dir.lib}" />
+
+ <mkdir dir="${dest.dir.classes}/META-INF" />
+
+ </target>
+
+ <target name="generate.service" depends="clean,prepare">
+
+ <copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
+
+ <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/service/**,sample/addressbook/entry/**">
+ <classpath refid="build.class.path" />
+ </javac>
+
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir}/AddressBookService.aar" />
+
+ <copy file="${dest.dir}/AddressBookService.aar" tofile="${repository.path}/AddressBookService.aar" overwrite="true" />
+
+ </target>
+
+ <target name="rpc.client" depends="clean,prepare">
+
+ <antcall target="rpc.client.compile" />
+
+ <antcall target="rpc.client.jar" />
+
+ <antcall target="rpc.client.run">
+ <param name="uri" value="${uri}"/>
+ </antcall>
+
+ </target>
+
+ <target name="rpc.client.compile">
+ <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**">
+ <classpath refid="build.class.path" />
+ </javac>
+ </target>
+
+ <target name="rpc.client.jar">
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**" />
+ </target>
+
+ <target name="rpc.client.run">
+ <java classname="sample.addressbook.rpcclient.AddressBookRPCClient">
+ <classpath refid="client.class.path" />
+ <arg value="${uri}" />
+ </java>
+ </target>
+
+ <target name="check-parameters">
+ <condition property="parameters.set">
+ <and>
+ <isset property="wsdl" />
+ </and>
+ </condition>
+ <!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
+ <antcall target="print-usage" />
+ </target>
+
+ <target name="print-usage" unless="parameters.set">
+ <echo message="ant adb.client -Dwsdl='http://<yourhost>:<yourport>/axis2/services/AdressBookService?wsdl'" />
+ </target>
+
+ <target name="adb.client" depends="check-parameters" if="parameters.set">
+
+ <antcall target="clean" />
+ <antcall target="prepare" />
+ <antcall target="adb.client.codegen-stub">
+ <param name="wsdl" value="${wsdl}"/>
+ </antcall>
+
+ <antcall target="adb.client.compile" />
+
+ <antcall target="adb.client.jar" />
+
+ <antcall target="adb.client.run" />
+
+ </target>
+
+ <target name="adb.client.codegen-stub">
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="${wsdl}" />
+ <arg value="-p" />
+ <arg value="sample.addressbook.stub" />
+ <arg value="-o" />
+ <arg value="src" />
+ <arg value="-f" />
+ <classpath refid="build.class.path" />
+ </java>
+ </target>
+
+ <target name="adb.client.compile">
+ <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**">
+ <classpath refid="build.class.path" />
+ </javac>
+ </target>
+
+ <target name="adb.client.jar">
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/adb-client.jar" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**" />
+ </target>
+
+ <target name="adb.client.run">
+ <java classname="sample.addressbook.adbclient.AddressBookADBClient">
+ <classpath refid="client.class.path" />
+ </java>
+ </target>
+
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/pojo/src/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/pojo/src/META-INF/services.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/pojo/src/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/pojo/src/META-INF/services.xml Wed Nov 15 10:15:56 2006
@@ -1,13 +1,13 @@
-<service name="AddressBookService" scope="application">
- <description>
- POJO: AddressBook Service
- </description>
- <messageReceivers>
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
- class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
- class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
- </messageReceivers>
- <parameter name="ServiceClass" locked="false">sample.addressbook.service.AddressBookService</parameter>
-
+<service name="AddressBookService" scope="application">
+ <description>
+ POJO: AddressBook Service
+ </description>
+ <messageReceivers>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+ class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+ class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
+ </messageReceivers>
+ <parameter name="ServiceClass" locked="false">sample.addressbook.service.AddressBookService</parameter>
+
</service>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/quickstart/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/quickstart/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/quickstart/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/quickstart/build.xml Wed Nov 15 10:15:56 2006
@@ -1,57 +1,57 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
- <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
- <property name="build.dir" value="build"/>
-
- <path id="axis2.classpath">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <target name="compile.service">
- <mkdir dir="${build.dir}"/>
- <mkdir dir="${build.dir}/classes"/>
-
- <!--First let's compile the classes-->
- <javac debug="on"
- fork="true"
- destdir="${build.dir}/classes"
- srcdir="${basedir}/src"
- classpathref="axis2.classpath">
- </javac>
- </target>
-
- <target name="generate.wsdl" depends="compile.service">
- <taskdef name="java2wsdl"
- classname="org.apache.ws.java2wsdl.Java2WSDLTask"
- classpathref="axis2.classpath"/>
- <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
- outputLocation="${build.dir}"
- targetNamespace="http://quickstart.samples/"
- schemaTargetNamespace="http://quickstart.samples/xsd">
- <classpath>
- <pathelement path="${axis2.classpath}"/>
- <pathelement location="${build.dir}/classes"/>
- </classpath>
- </java2wsdl>
- </target>
-
- <target name="generate.service" depends="compile.service">
- <!--aar them up -->
- <copy toDir="${build.dir}/classes" failonerror="false">
- <fileset dir="${basedir}/resources">
- <include name="**/*.xml"/>
- </fileset>
- </copy>
- <jar destfile="${build.dir}/StockQuoteService.aar">
- <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </target>
-</project>
+<project basedir="." default="generate.service">
+
+ <property environment="env"/>
+ <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+ <property name="build.dir" value="build"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="compile.service">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${build.dir}/classes"/>
+
+ <!--First let's compile the classes-->
+ <javac debug="on"
+ fork="true"
+ destdir="${build.dir}/classes"
+ srcdir="${basedir}/src"
+ classpathref="axis2.classpath">
+ </javac>
+ </target>
+
+ <target name="generate.wsdl" depends="compile.service">
+ <taskdef name="java2wsdl"
+ classname="org.apache.ws.java2wsdl.Java2WSDLTask"
+ classpathref="axis2.classpath"/>
+ <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
+ outputLocation="${build.dir}"
+ targetNamespace="http://quickstart.samples/"
+ schemaTargetNamespace="http://quickstart.samples/xsd">
+ <classpath>
+ <pathelement path="${axis2.classpath}"/>
+ <pathelement location="${build.dir}/classes"/>
+ </classpath>
+ </java2wsdl>
+ </target>
+
+ <target name="generate.service" depends="compile.service">
+ <!--aar them up -->
+ <copy toDir="${build.dir}/classes" failonerror="false">
+ <fileset dir="${basedir}/resources">
+ <include name="**/*.xml"/>
+ </fileset>
+ </copy>
+ <jar destfile="${build.dir}/StockQuoteService.aar">
+ <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+ </jar>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/quickstartadb/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/quickstartadb/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/quickstartadb/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/quickstartadb/build.xml Wed Nov 15 10:15:56 2006
@@ -1,80 +1,80 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
- <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
- <property name="build.dir" value="build"/>
-
- <path id="axis2.classpath">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
- <path id="client.class.path">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${build.dir}/client/build/lib" >
- <include name="*.jar" />
- </fileset>
- </path>
-
- <target name="init">
- <mkdir dir="${build.dir}"/>
- </target>
-
- <target name="generate.service" depends="init">
- <taskdef name="wsdl2java"
- classname="org.apache.axis2.tool.ant.AntCodegenTask"
- classpathref="axis2.classpath"/>
- <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
- output="${build.dir}/service"
- packageName="samples.quickstart.service.adb"
- language="java"
- databindingName="adb"
- synconly="true"
- serverside="true"
- serverSideInterface="true"
- namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
- generateservicexml="true"/>
- <copy file="${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java"
- toDir="${build.dir}/service/src/samples/quickstart/service/adb/"
- overwrite="yes">
- </copy>
- <copy file="${basedir}/resources/META-INF/services.xml"
- toDir="${build.dir}/service/resources/"
- overwrite="yes">
- </copy>
- <ant dir="${build.dir}/service"/>
- </target>
-
- <target name="generate.client" depends="init">
- <taskdef name="wsdl2java"
- classname="org.apache.axis2.tool.ant.AntCodegenTask"
- classpathref="axis2.classpath"/>
- <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
- output="${build.dir}/client"
- packageName="samples.quickstart.service.adb"
- databindingName="adb"
- namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
- language="java"
- synconly="true"/>
- <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
- toDir="${build.dir}/client/src/samples/quickstart/clients/"
- overwrite="yes">
- </copy>
- <ant dir="${build.dir}/client"/>
- </target>
-
- <target name="generate.all" depends="generate.service, generate.client"/>
-
- <target name="run.client" depends="generate.client">
- <java classname="samples.quickstart.clients.ADBClient">
- <classpath refid="client.class.path" />
- </java>
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </target>
-</project>
+<project basedir="." default="generate.service">
+
+ <property environment="env"/>
+ <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+ <property name="build.dir" value="build"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ <path id="client.class.path">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${build.dir}/client/build/lib" >
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <target name="init">
+ <mkdir dir="${build.dir}"/>
+ </target>
+
+ <target name="generate.service" depends="init">
+ <taskdef name="wsdl2java"
+ classname="org.apache.axis2.tool.ant.AntCodegenTask"
+ classpathref="axis2.classpath"/>
+ <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+ output="${build.dir}/service"
+ packageName="samples.quickstart.service.adb"
+ language="java"
+ databindingName="adb"
+ synconly="true"
+ serverside="true"
+ serverSideInterface="true"
+ namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
+ generateservicexml="true"/>
+ <copy file="${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java"
+ toDir="${build.dir}/service/src/samples/quickstart/service/adb/"
+ overwrite="yes">
+ </copy>
+ <copy file="${basedir}/resources/META-INF/services.xml"
+ toDir="${build.dir}/service/resources/"
+ overwrite="yes">
+ </copy>
+ <ant dir="${build.dir}/service"/>
+ </target>
+
+ <target name="generate.client" depends="init">
+ <taskdef name="wsdl2java"
+ classname="org.apache.axis2.tool.ant.AntCodegenTask"
+ classpathref="axis2.classpath"/>
+ <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+ output="${build.dir}/client"
+ packageName="samples.quickstart.service.adb"
+ databindingName="adb"
+ namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
+ language="java"
+ synconly="true"/>
+ <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
+ toDir="${build.dir}/client/src/samples/quickstart/clients/"
+ overwrite="yes">
+ </copy>
+ <ant dir="${build.dir}/client"/>
+ </target>
+
+ <target name="generate.all" depends="generate.service, generate.client"/>
+
+ <target name="run.client" depends="generate.client">
+ <java classname="samples.quickstart.clients.ADBClient">
+ <classpath refid="client.class.path" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/quickstartaxiom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/quickstartaxiom/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/quickstartaxiom/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/quickstartaxiom/build.xml Wed Nov 15 10:15:56 2006
@@ -1,55 +1,55 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
- <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
- <property name="build.dir" value="build"/>
-
- <path id="axis2.classpath">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
- <path id="client.class.path">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar" />
- </fileset>
- <pathelement location="${build.dir}/classes" />
- </path>
-
- <target name="compile">
- <mkdir dir="${build.dir}"/>
- <mkdir dir="${build.dir}/classes"/>
-
- <!--First let's compile the classes-->
- <javac debug="on"
- fork="true"
- destdir="${build.dir}/classes"
- srcdir="${basedir}/src"
- classpathref="axis2.classpath">
- </javac>
- </target>
-
- <target name="generate.service" depends="compile">
- <!--aar them up -->
- <copy toDir="${build.dir}/classes" failonerror="false">
- <fileset dir="${basedir}/resources">
- <include name="**/*.xml"/>
- <include name="**/*.wsdl"/>
- </fileset>
- </copy>
- <jar destfile="${build.dir}/StockQuoteService.aar">
- <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
- </jar>
- </target>
-
- <target name="run.client" depends="compile">
- <java classname="samples.quickstart.clients.AXIOMClient">
- <classpath refid="client.class.path" />
- </java>
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </target>
-</project>
+<project basedir="." default="generate.service">
+
+ <property environment="env"/>
+ <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+ <property name="build.dir" value="build"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ <path id="client.class.path">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <pathelement location="${build.dir}/classes" />
+ </path>
+
+ <target name="compile">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${build.dir}/classes"/>
+
+ <!--First let's compile the classes-->
+ <javac debug="on"
+ fork="true"
+ destdir="${build.dir}/classes"
+ srcdir="${basedir}/src"
+ classpathref="axis2.classpath">
+ </javac>
+ </target>
+
+ <target name="generate.service" depends="compile">
+ <!--aar them up -->
+ <copy toDir="${build.dir}/classes" failonerror="false">
+ <fileset dir="${basedir}/resources">
+ <include name="**/*.xml"/>
+ <include name="**/*.wsdl"/>
+ </fileset>
+ </copy>
+ <jar destfile="${build.dir}/StockQuoteService.aar">
+ <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+ </jar>
+ </target>
+
+ <target name="run.client" depends="compile">
+ <java classname="samples.quickstart.clients.AXIOMClient">
+ <classpath refid="client.class.path" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+</project>
Modified: webservices/axis2/branches/java/new-trunk/modules/samples/quickstartjibx/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/new-trunk/modules/samples/quickstartjibx/build.xml?view=diff&rev=475341&r1=475340&r2=475341
==============================================================================
--- webservices/axis2/branches/java/new-trunk/modules/samples/quickstartjibx/build.xml (original)
+++ webservices/axis2/branches/java/new-trunk/modules/samples/quickstartjibx/build.xml Wed Nov 15 10:15:56 2006
@@ -1,83 +1,83 @@
-<project basedir="." default="generate.all">
-
- <property environment="env"/>
- <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
- <property name="build.dir" value="build"/>
-
- <path id="axis2.classpath">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
- <path id="client.class.path">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${build.dir}/client/build/lib" >
- <include name="*.jar" />
- </fileset>
- </path>
-
- <target name="init">
- <delete dir="${build.dir}"/>
- <mkdir dir="${build.dir}"/>
- </target>
-
- <target name="generate.service" depends="init">
- <taskdef name="wsdl2java"
- classname="org.apache.axis2.tool.ant.AntCodegenTask"
- classpathref="axis2.classpath"/>
- <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
- output="${build.dir}/service"
- packageName="samples.quickstart.service.jibx"
- language="java"
- databindingName="jibx"
- unwrap="true"
- synconly="true"
- serverside="true"
- serverSideInterface="true"
- namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
- generateservicexml="true"/>
- <copy file="${basedir}/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java"
- toDir="${build.dir}/service/src/samples/quickstart/service/jibx/"
- overwrite="yes">
- </copy>
- <copy file="${basedir}/resources/META-INF/services.xml"
- toDir="${build.dir}/service/resources/"
- overwrite="yes">
- </copy>
- <ant dir="${build.dir}/service"/>
- </target>
-
- <target name="generate.client" depends="init">
- <taskdef name="wsdl2java"
- classname="org.apache.axis2.tool.ant.AntCodegenTask"
- classpathref="axis2.classpath"/>
- <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
- output="${build.dir}/client"
- packageName="samples.quickstart.service.jibx"
- databindingName="jibx"
- namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
- language="java"
- unwrap="true"
- synconly="true"/>
- <copy file="${basedir}/src/samples/quickstart/clients/JiBXClient.java"
- toDir="${build.dir}/client/src/samples/quickstart/clients/"
- overwrite="yes">
- </copy>
- <ant dir="${build.dir}/client"/>
- </target>
-
- <target name="generate.all" depends="generate.service, generate.client"/>
-
- <target name="run.client" depends="generate.client">
- <java classname="samples.quickstart.clients.JiBXClient">
- <classpath refid="client.class.path" />
- </java>
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </target>
-</project>
+<project basedir="." default="generate.all">
+
+ <property environment="env"/>
+ <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+ <property name="build.dir" value="build"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ <path id="client.class.path">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${build.dir}/client/build/lib" >
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <target name="init">
+ <delete dir="${build.dir}"/>
+ <mkdir dir="${build.dir}"/>
+ </target>
+
+ <target name="generate.service" depends="init">
+ <taskdef name="wsdl2java"
+ classname="org.apache.axis2.tool.ant.AntCodegenTask"
+ classpathref="axis2.classpath"/>
+ <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+ output="${build.dir}/service"
+ packageName="samples.quickstart.service.jibx"
+ language="java"
+ databindingName="jibx"
+ unwrap="true"
+ synconly="true"
+ serverside="true"
+ serverSideInterface="true"
+ namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
+ generateservicexml="true"/>
+ <copy file="${basedir}/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java"
+ toDir="${build.dir}/service/src/samples/quickstart/service/jibx/"
+ overwrite="yes">
+ </copy>
+ <copy file="${basedir}/resources/META-INF/services.xml"
+ toDir="${build.dir}/service/resources/"
+ overwrite="yes">
+ </copy>
+ <ant dir="${build.dir}/service"/>
+ </target>
+
+ <target name="generate.client" depends="init">
+ <taskdef name="wsdl2java"
+ classname="org.apache.axis2.tool.ant.AntCodegenTask"
+ classpathref="axis2.classpath"/>
+ <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+ output="${build.dir}/client"
+ packageName="samples.quickstart.service.jibx"
+ databindingName="jibx"
+ namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
+ language="java"
+ unwrap="true"
+ synconly="true"/>
+ <copy file="${basedir}/src/samples/quickstart/clients/JiBXClient.java"
+ toDir="${build.dir}/client/src/samples/quickstart/clients/"
+ overwrite="yes">
+ </copy>
+ <ant dir="${build.dir}/client"/>
+ </target>
+
+ <target name="generate.all" depends="generate.service, generate.client"/>
+
+ <target name="run.client" depends="generate.client">
+ <java classname="samples.quickstart.clients.JiBXClient">
+ <classpath refid="client.class.path" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org