You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2006/11/01 09:18:14 UTC
svn commit: r469814 - in
/webservices/axis2/branches/java/1_1/modules/samples: googlespellcheck/
mtom/ pojo/ soapwithattachments/ yahoorestsearch/
Author: chinthaka
Date: Wed Nov 1 00:18:13 2006
New Revision: 469814
URL: http://svn.apache.org/viewvc?view=rev&rev=469814
Log:
Updating scripts and documentation to use generate.service and run.client. Fixing the default goals in scripts as well.
Modified:
webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml
webservices/axis2/branches/java/1_1/modules/samples/mtom/README.txt
webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml
webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/README.txt
webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml
webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/README.txt
webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/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=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml Wed Nov 1 00:18:13 2006
@@ -1,5 +1,5 @@
-<project basedir="." default="client">
+<project basedir="." default="run.client">
<property name="wsdl" value="http://tools.wso2.net:12001/axis2/services/SimplifiedSpellCheck?wsdl" />
@@ -42,7 +42,7 @@
</target>
- <target name="client" depends="clean,prepare">
+ <target name="run.client" depends="clean,prepare">
<antcall target="client.codegen-stub">
<param name="wsdl" value="${wsdl}"/>
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/README.txt?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/README.txt Wed Nov 1 00:18:13 2006
@@ -11,12 +11,12 @@
-------------------
1. Please make sure to set the AXIS2_HOME environment variable to point to the
AXIS2_DIST.
-1. Use <ant service> command in the AXIS2_DIST/sample/mtom/ to build the service.
+1. Use ant generate.service or just ant command in the AXIS2_DIST/sample/mtom/ to build the service.
2. Generated service gets copied to the AXIS2_DIST/repository/services automatically.
Run the AXIS2_DIST/bin/axis2server.{sh.bat} to start the standalone axis2 server.
(Alternatively you can drop the sample to the services directory of a Axis2 server
running in a servlet container)
-4. Use <ant client -Dfile "file to be send" -Ddest "destination file name" > to
+4. Use ant run.client -Dfile "file to be send" -Ddest "destination file name" > to
build and run the client.
Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml Wed Nov 1 00:18:13 2006
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-->
-<project basedir="." default="clean">
+<project basedir="." default="generate.service">
<property environment="env" />
<property name="build.dir" value="build" />
@@ -34,7 +34,7 @@
</path>
<!-- Create Service -->
- <target name="service">
+ <target name="generate.service">
<java classname="org.apache.axis2.wsdl.WSDL2Java">
<arg value="-uri" />
@@ -68,7 +68,7 @@
</target>
<!-- Run Client -->
- <target name="client" depends="check-parameters" if="parameters.set">
+ <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" />
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml Wed Nov 1 00:18:13 2006
@@ -1,22 +1,22 @@
-<project basedir=".">
-
+<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" />
@@ -24,61 +24,61 @@
<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="service" depends="clean,prepare">
-
+
+ <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" />
@@ -99,7 +99,7 @@
<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" />
@@ -107,15 +107,15 @@
<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" />
@@ -128,17 +128,17 @@
<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" />
Modified: webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/README.txt?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/README.txt Wed Nov 1 00:18:13 2006
@@ -12,12 +12,12 @@
Running the Sample:
-------------------
-1. Use <ant service> command in the AXIS2_DIST/sample/mtom/ to build the service.
+1. Use ant generate.service or ant command in the AXIS2_DIST/sample/mtom/ to build the service.
2. Generated service gets copied to the AXIS2_DIST/repository/services automatically.
Run the AXIS2_DIST/bin/axis2server.{sh.bat} to start the standalone axis2 server.
(Alternatively you can drop the sample to the services directory of a Axis2 server
running in a servlet container)
-4. Use <ant client -Dfile "file to be send" -Ddest "destination file name" > to
+4. Use ant run.client -Dfile "file to be send" -Ddest "destination file name" > to
build and run the client.
Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble
Modified: webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml Wed Nov 1 00:18:13 2006
@@ -1,4 +1,4 @@
-<project name="SOAPWithAttachmentsSample" default="service">
+<project name="SOAPWithAttachmentsSample" default="generate.service">
<property environment="env" />
<property name="axis2.home" value="../../" />
<property name="axis2.repo" value="${axis2.home}/repository" />
@@ -11,7 +11,7 @@
<pathelement location="build/swaSampleClient.jar" />
</path>
- <target name="service" depends="compile">
+ <target name="generate.service" depends="compile">
<jar destfile="${build.dir}/sample-swa.aar">
<fileset dir="resources/">
<include name="META-INF/services.xml" />
@@ -45,7 +45,7 @@
<echo message="ant -Dfile <file to be transfered> -Ddest <name of the destination file>" />
</target>
- <target name="client" depends="compile,check-parameters" if="parameters.set">
+ <target name="run.client" depends="compile,check-parameters" if="parameters.set">
<jar destfile="${build.dir}/swaSampleClient.jar">
<fileset dir="${build.dir}/classes">
<include name="sample/soapwithattachments/client/**/*.class" />
Modified: webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/README.txt?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/README.txt Wed Nov 1 00:18:13 2006
@@ -13,13 +13,9 @@
Pre-Requisites
==============
-None.
+Apache Ant 1.6.2 or later
Running The Sample
==================
-There are two ways in which you can run this sample.
-
-1. If you have Apache Ant installed in your system, type "ant" from within samples/yahoorestsearch folder.
- or
-2. Use either run.bat or run.sh (depending on your platform).
+Type "ant" from within samples/yahoorestsearch folder.
Modified: webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/build.xml?view=diff&rev=469814&r1=469813&r2=469814
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/yahoorestsearch/build.xml Wed Nov 1 00:18:13 2006
@@ -1,4 +1,4 @@
-<project name="YahooRestSearchSample" default="run">
+<project name="YahooRestSearchSample" default="run.client">
<property environment="env" />
<property name="axis2.home" value="../../" />
<property name="axis2.repo" value="${axis2.home}/repository" />
@@ -21,7 +21,7 @@
<fileset dir="${build.dir}/classes" />
</jar>
</target>
- <target name="run" depends="compile">
+ <target name="run.client" depends="compile">
<java classname="sample.yahooservices.RESTSearch.RESTSearchClient" classpathref="axis.classpath" fork="true">
<jvmarg value="-Daxis2.repo=${axis2.repo}" />
</java>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org