1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 author: Bertram Nolte 4 created: 2001-10-11 5 revision: 1.0 6 --> 7<project name="MinimalComponent" basedir="." default="all"> 8 9 <target name="init"> 10 <!-- 11 In this target you have to change all parts, so that the properties 12 fit to your odk installation and to your service 13 --> 14 <property name="ODKPATH" value="D:/cvs/api/odk"/> 15 <property name="OUTPUTPATH" value="D:/cvs/api/odk/WINexample.out"/> 16 <property name="PACKAGE_NAME" value="org.OpenOffice."/> 17 <property name="JAR_FILE_NAME" value="MinimalComponent"/> 18 <property name="INTERFACE_NAME" value="MinimalComponent"/> 19 <property name="RDB_NAME" value="MinimalComponent.rdb"/> 20 </target> 21 <target depends="init" name="unoidl"> 22 23 <exec dir="${ODKPATH}/WINexample.out/misc/" executable="${ODKPATH}/windows/bin/idlc.exe" timeout="600"> 24 <arg line="-I. -I${ODKPATH}/idl ${ODKPATH}/examples/java/MinimalComponent/${INTERFACE_NAME}.idl"/> 25 </exec> 26 27 <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600"> 28 <arg line="./${RDB_NAME} /UCR ./${INTERFACE_NAME}.urd"/> 29 </exec> 30 31 <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600"> 32 <arg line="./${RDB_NAME} / ${ODKPATH}/windows/bin/applicat.rdb"/> 33 </exec> 34 35 <exec dir="." executable="${ODKPATH}/windows/bin/javamaker.exe" timeout="600"> 36 <arg line="-BUCR -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${RDB_NAME}"/> 37<!-- 38 <arg line="-BUCR -T${PACKAGE_NAME}${INTERFACE_NAME} -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${INTERFACE_NAME}.urd"/> 39 --> 40 </exec> 41 42 </target> 43 44 <target depends="init,unoidl" name="compile"> 45 <mkdir dir="classes"/> 46 <javac debug="on" destdir="./classes" srcdir="." > 47 <classpath> 48 <fileset dir="${ODKPATH}/classes/"> 49 <include name="**/*.jar"/> 50 </fileset> 51 <pathelement location="./classes"/> 52 </classpath> 53 </javac> 54 </target> 55 56 <target depends="compile,init" name="jar"> 57 <jar basedir="./classes" compress="true" jarfile="${JAR_FILE_NAME}.jar" manifest="Manifest"> 58 </jar> 59 </target> 60 61 <target depends="compile,init,jar" name="all"> 62 <!-- WRITEME --> 63 </target> 64</project> 65