Author: dims Date: Wed Jun 6 12:08:02 2007 New Revision: 544923 URL: http://svn.apache.org/viewvc?view=rev&rev=544923 Log: Fix for AXIS2-2712 - Separate compile client from run client in MTOM sample
Modified: webservices/axis2/trunk/java/modules/samples/mtom/README.txt webservices/axis2/trunk/java/modules/samples/mtom/build.xml Modified: webservices/axis2/trunk/java/modules/samples/mtom/README.txt URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/mtom/README.txt?view=diff&rev=544923&r1=544922&r2=544923 ============================================================================== --- webservices/axis2/trunk/java/modules/samples/mtom/README.txt (original) +++ webservices/axis2/trunk/java/modules/samples/mtom/README.txt Wed Jun 6 12:08:02 2007 @@ -14,12 +14,12 @@ Running the Sample: =================== -1. Use ant generate.service or just ant command in the Axis2_HOME/sample/mtom/ to build the service. +1. Use ant generate.service or just the ant command alone in the Axis2_HOME/sample/mtom/ to build the service. 2. Generated service gets copied to the Axis2_HOME/repository/services automatically. 3. Run the Axis2_HOME/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 run.client -Dfile "file to be send" -Ddest "destination file name" to build and run the - client. + you can drop the sample into the services directory of a Axis2 server running in a servlet container) +4. Use ant generate.client to build the client. +5. Use ant run.client -Dfile "file to be sent" -Ddest "destination file name" to run the client. Help Modified: webservices/axis2/trunk/java/modules/samples/mtom/build.xml URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/mtom/build.xml?view=diff&rev=544923&r1=544922&r2=544923 ============================================================================== --- webservices/axis2/trunk/java/modules/samples/mtom/build.xml (original) +++ webservices/axis2/trunk/java/modules/samples/mtom/build.xml Wed Jun 6 12:08:02 2007 @@ -58,16 +58,16 @@ <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 --> + <!-- This is a hack to get an 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>" /> + <echo message="ant -Dfile <file to be transferred> -Ddest <name of the destination file>" /> </target> - <!-- Run Client --> - <target name="run.client" depends="check-parameters" if="parameters.set"> + <!-- Generate Client --> + <target name="generate.client"> <java classname="org.apache.axis2.wsdl.WSDL2Java"> <arg value="-uri" /> <arg value="resources/MTOMSample.wsdl" /> @@ -85,8 +85,10 @@ <javac srcdir="${client.dir}/src" destdir="${client.classes.dir}"> <classpath refid="class.path" /> </javac> + </target> - <!-- Run client --> + <!-- Run Client --> + <target name="run.client" depends="check-parameters" if="parameters.set"> <!-- 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" /> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]