1 <?xml version="1.0" encoding="UTF-8"?>
7 <project name="MinimalComponent" basedir="." default="all">
11 In this target you have to change all parts, so that the properties
12 fit to your odk installation and to your service
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"/>
21 <target depends="init" name="unoidl">
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"/>
27 <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
28 <arg line="./${RDB_NAME} /UCR ./${INTERFACE_NAME}.urd"/>
31 <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
32 <arg line="./${RDB_NAME} / ${ODKPATH}/windows/bin/applicat.rdb"/>
35 <exec dir="." executable="${ODKPATH}/windows/bin/javamaker.exe" timeout="600">
36 <arg line="-BUCR -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${RDB_NAME}"/>
38 <arg line="-BUCR -T${PACKAGE_NAME}${INTERFACE_NAME} -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${INTERFACE_NAME}.urd"/>
44 <target depends="init,unoidl" name="compile">
45 <mkdir dir="classes"/>
46 <javac debug="on" destdir="./classes" srcdir="." >
48 <fileset dir="${ODKPATH}/classes/">
49 <include name="**/*.jar"/>
51 <pathelement location="./classes"/>
56 <target depends="compile,init" name="jar">
57 <jar basedir="./classes" compress="true" jarfile="${JAR_FILE_NAME}.jar" manifest="Manifest">
61 <target depends="compile,init,jar" name="all">