You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yoko-commits@incubator.apache.org by dm...@apache.org on 2006/06/23 14:03:09 UTC

svn commit: r416724 - /incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/build.xml

Author: dmiddlem
Date: Fri Jun 23 07:03:08 2006
New Revision: 416724

URL: http://svn.apache.org/viewvc?rev=416724&view=rev
Log:
Updated build.xml file to build the corba portion of the demo.

Modified:
    incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/build.xml

Modified: incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/build.xml
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/build.xml?rev=416724&r1=416723&r2=416724&view=diff
==============================================================================
--- incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/build.xml (original)
+++ incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/build.xml Fri Jun 23 07:03:08 2006
@@ -37,7 +37,7 @@
         <pathelement location="${yoko.home}/lib/yoko.jar"/>
     </path>
 
-    <target name="build" depends="generate.server.code, generate.client.code">
+    <target name="build" depends="generate.server.code, generate.client.code, generate.idl.server.code, generate.idl.client.code">
         <javac destdir="${build.classes.dir}" debug="true">
             <src path="${basedir}/src"/>
             <src path="${build.src.dir}"/>
@@ -46,6 +46,13 @@
                 <pathelement path="${thirdparty.classpath}"/>
             </classpath>
         </javac>
+        <javac destdir="${build.classes.dir}" debug="true">
+            <src path="${basedir}/src"/>
+            <src path="${build.src.dir}"/>
+            <classpath>
+                <path path="${yoko.home}/core/target/yoko-core-1.0-incubating-M1-SNAPSHOT.jar"/>
+            </classpath>
+        </javac>
     </target>
 
     <target name="generate.corba.wsdl">
@@ -63,6 +70,20 @@
         <wsdl2java file="HelloWorld-corba.wsdl" package="yoko.client" extraArgs="-client" />
     </target>
 
+    <target name="generate.idl.client.code">
+        <echo level="info" message="Generating client code using idlj..."/>
+        <exec executable="idlj" dir=".">
+            <arg line="-fall -td ${build.src.dir} -pkgPrefix HelloWorld corba.client ../resources/HelloWorld.idl"/>
+        </exec>
+    </target>
+
+    <target name="generate.idl.server.code">
+        <echo level="info" message="Generating server code using idlj..."/>
+        <exec executable="idlj" dir=".">
+            <arg line="-fall -td ${build.src.dir} -pkgPrefix HelloWorld corba.server ../resources/HelloWorld.idl"/>
+        </exec>
+    </target>
+
     <target name="clean">
         <delete dir="${build.classes.dir}"/>
         <delete dir="${build.src.dir}"/>
@@ -81,7 +102,6 @@
             </java>
         </sequential>
     </macrodef>
-
 
     <macrodef name="wsdl2java">
         <attribute name="srcdestdir" default="${build.src.dir}"/>