axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r469453 - /webservices/axis2/branches/java/1_1/modules/samples/FaultHandling/build.xml
Date Tue, 31 Oct 2006 11:43:33 GMT
Author: thilina
Date: Tue Oct 31 03:43:32 2006
New Revision: 469453

URL: http://svn.apache.org/viewvc?view=rev&rev=469453
Log:
adding the targets according to the sample guidelines

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/FaultHandling/build.xml

Modified: webservices/axis2/branches/java/1_1/modules/samples/FaultHandling/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/FaultHandling/build.xml?view=diff&rev=469453&r1=469452&r2=469453
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/FaultHandling/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/FaultHandling/build.xml Tue Oct 31
03:43:32 2006
@@ -1,22 +1,26 @@
-<project basedir="." default="generate.all">
+<project basedir="." default="service">
 
     <property environment="env"/>
 
     <property name="wsdl.uri" value="bank.wsdl"/>
-    <property name="service.target" value="target/service"/>
-    <property name="client.target" value="target/client"/>
+    <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="service" depends="generate.service">
+	<copy file="${service.target}/BankService.aar" tofile="../../repository/services/sample-faulthandling.aar"
overwrite="true" /> 
     </target>
 
-    <target name="client">
+    <target name="client" depends="gen.stub">
         <java classname="example.BankClient" fork="true">
             <arg line="${url} ${account} ${amt}"/>
             <classpath>
-                <pathelement location="BankService-test-client.jar"/>
+                <pathelement location="${client.target}/BankService-test-client.jar"/>
                 <fileset dir="../../lib">
                     <include name="*.jar"/>
                 </fileset>
@@ -68,9 +72,9 @@
                 <include name="*.xsd"/>
             </fileset>
         </copy>
-        <jar destfile="BankService.aar">
+        <jar destfile="${service.target}/BankService.aar">
             <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
-        </jar>
+        </jar>
 
     </target>
 
@@ -103,7 +107,7 @@
         </javac>
 
         <!--jar the compiled stuff-->
-        <jar destfile="BankService-test-client.jar">
+        <jar destfile="${client.target}/BankService-test-client.jar">
             <fileset dir="${client.target}/classes">
                 <exclude name="**/META-INF/*.*"/>
                 <exclude name="**/lib/*.*"/>
@@ -112,6 +116,8 @@
             </fileset>
         </jar>
     </target>
-
-
-</project>
\ No newline at end of file
+
+     <target name="clean">
+	<delete dir="build" />
+     </target>
+</project>



---------------------------------------------------------------------
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