mcconnell 02/02/22 08:27:46
Modified: apps/enterprise/orb build.xml
Log:
addition of examples
Revision Changes Path
1.7 +97 -18 jakarta-avalon-cornerstone/apps/enterprise/orb/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/enterprise/orb/build.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- build.xml 6 Feb 2002 10:23:11 -0000 1.6
+++ build.xml 22 Feb 2002 16:27:46 -0000 1.7
@@ -38,8 +38,10 @@
<property name="compiler.jar" value="psdl-${VERSION}.jar"/>
<property name="orb.manager.jar" value="orb-manager-${VERSION}.jar"/>
+ <property name="orb.examples.jar" value="orb-examples.jar"/>
<property name="enterprise" value=".." />
+ <property name="release.lib.path" value="${enterprise}/release/lib" />
<property name="lib" value="lib" />
<property name="src" value="src" />
@@ -62,6 +64,27 @@
</fileset>
</path>
+ <!-- MAIN TARGETS -->
+
+ <target name="all" depends="clean,dist,examples"/>
+ <target name="build" depends="orb"/>
+ <target name="dist" depends="build,javadoc,support"/>
+ <target name="install.context">
+ <available file="${install.path}" type="dir"
property="install.path.present"/>
+ </target>
+
+ <target name="install" depends="install.context,dist"
if="install.path.present">
+ <copy todir="${install.path}">
+ <fileset dir="${dist}">
+ <include name="${orb.manager.jar}"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build}"/>
+ </target>
+
<!-- PREPARE -->
<target name="prepare" >
@@ -82,6 +105,9 @@
<srcfiles dir="${src}/java">
<include name="org/apache/orb/**/*.*"/>
</srcfiles>
+ <srcfiles dir="${etc}">
+ <include name="factory.mf"/>
+ </srcfiles>
<srcfiles dir="${build}/orb/src">
<include name="org/apache/orb/**/*.*"/>
</srcfiles>
@@ -101,35 +127,68 @@
<copy todir="${build}/orb/lib">
<fileset dir="${src}/java">
<include name="org/apache/orb/*.xinfo"/>
+ <include name="org/apache/orb/**/*.xml"/>
+ <include name="org/apache/orb/**/orb.properties"/>
</fileset>
</copy>
- <jar file="${dist}/${orb.manager.jar}" basedir="${build}/orb/lib" />
+ <jar file="${dist}/${orb.manager.jar}" basedir="${build}/orb/lib"
manifest="${etc}/factory.mf" />
</target>
- <!-- MAIN TARGETS -->
+ <target name="examples" depends="hello.build"/>
- <target name="clean">
- <delete dir="${build}"/>
+ <target name="hello.build.context" >
+ <uptodate property="hello.uptodate"
targetfile="${dist}/${orb.examples.jar}">
+ <srcfiles dir="${src}/examples">
+ <include name="hello/**/*.*"/>
+ </srcfiles>
+ <srcfiles dir="${build}/examples">
+ <include name="hello/**/*.*"/>
+ </srcfiles>
+ </uptodate>
</target>
- <target name="build" depends="orb"/>
-
- <target name="dist" depends="build,javadoc,support"/>
-
- <target name="all" depends="clean,dist,install"/>
+ <target name="hello.idl.context" >
+ <uptodate property="hello.modified"
targetfile="${src}/examples/hello/idl/hello.idl">
+ <srcfiles dir="${build}/examples/src">
+ <include name="**/*"/>
+ </srcfiles>
+ </uptodate>
+ </target>
- <target name="install.context">
- <available file="${install.path}" type="dir"
property="install.path.present"/>
+ <target name="hello.idl" depends="hello.idl.context" if="hello.modified">
+ <antcall target="idl2java" >
+ <param name="idl.destination" value="${build}/examples/src"/>
+ <param name="idl.target" value="${src}/examples/hello/idl/hello.idl" />
+ </antcall>
</target>
-
- <target name="install" depends="install.context,build"
if="install.path.present">
- <copy todir="${install.path}">
- <fileset dir="${dist}">
- <include name="${orb.manager.jar}"/>
- </fileset>
+
+ <target name="hello.build" depends="hello.idl,hello.build.context"
unless="examples.uptodate">
+ <mkdir dir="${build}/examples/lib"/>
+ <javac debug="off" destdir="${build}/examples/lib" deprecation="true"
target="1.2">
+ <classpath>
+ <path refid="project.classpath" />
+ <pathelement path="${dist}/${orb.manager.jar}" />
+ </classpath>
+ <src path="${build}/examples/src" />
+ <src path="${src}/examples/hello/java" />
+ </javac>
+ <copy todir="${build}/examples/lib">
+ <fileset dir="${src}/examples/hello/java">
+ <include name="**/*.xml"/>
+ <include name="**/*.xinfo"/>
+ </fileset>
</copy>
+ <jar file="${dist}/${orb.examples.jar}" basedir="${build}/examples/lib"
manifest="${etc}/examples.mf"/>
</target>
+ <target name="hello" depends="hello.build">
+ <java classname="hello.HelloDemo" fork="true">
+ <classpath>
+ <path refid="project.classpath" />
+ <pathelement path="${dist}/${orb.examples.jar}" />
+ </classpath>
+ </java>
+ </target>
<!-- UTILITY TARGETS -->
@@ -158,19 +217,39 @@
doctitle="<h1>Object Request Broker (ORB)</h1>"
noindex="false" author="false"
use="true"
+ overview="${etc}/${overview.html}"
windowtitle="Apache ORB 2.4"
bottom="<a href='[EMAIL PROTECTED]/LICENSE.HTML'/>License,
Disclaimer and due credits.</a>"
additionalparam="-breakiterator -J-Xmx128m"
- packagenames="org.*" >
+ packagenames="org.*"
+ excludepackagenames="org.omg.*"
+ >
<sourcepath path="${src}/java"/>
<sourcepath path="${build}/orb/src"/>
+ <sourcepath path="${openorb.src}"/>
+ <sourcepath path="${openorb.build.src}"/>
<classpath>
<path refid="project.classpath" />
<pathelement path="${dist}/${orb.manager.jar}" />
</classpath>
<link href="${jdk.href}" />
<link href="${avalon.href}" />
+ <link href="${pss.href}" />
</javadoc>
+ </target>
+
+ <target name="idl2java" >
+ <echo message="Compiling IDL ${idl.target}"/>
+ <mkdir dir="${idl.destination}"/>
+ <java failonerror="true" classname="org.openorb.compiler.IdlCompiler"
fork="true">
+ <classpath>
+ <path refid="project.classpath"/>
+ </classpath>
+ <arg line="-silence"/>
+ <arg line="-d ${idl.destination}"/>
+ <arg line="-I ${idl.includes}"/>
+ <arg line="${idl.target}" />
+ </java>
</target>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>