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 th...@apache.org on 2006/11/01 06:54:06 UTC
svn commit: r469786 -
/webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml
Author: thilina
Date: Tue Oct 31 21:54:06 2006
New Revision: 469786
URL: http://svn.apache.org/viewvc?view=rev&rev=469786
Log:
Let's do a parameter checking before proceeeding...
Modified:
webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml
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=469786&r1=469785&r2=469786
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml Tue Oct 31 21:54:06 2006
@@ -85,9 +85,25 @@
<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="clean,prepare">
-
+ <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>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org