axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r469786 - /webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml
Date Wed, 01 Nov 2006 05:54:06 GMT
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://&lt;yourhost>:&lt;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


Mime
View raw message