1 <?xml version="1.0" encoding="UTF-8"?>
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 <project name="MinimalComponent" basedir="." default="all">
23 In this target you have to change all parts, so that the properties
24 fit to your odk installation and to your service
26 <property name="ODKPATH" value="D:/cvs/api/odk"/>
27 <property name="OUTPUTPATH" value="D:/cvs/api/odk/WINexample.out"/>
28 <property name="PACKAGE_NAME" value="org.OpenOffice."/>
29 <property name="JAR_FILE_NAME" value="MinimalComponent"/>
30 <property name="INTERFACE_NAME" value="MinimalComponent"/>
31 <property name="RDB_NAME" value="MinimalComponent.rdb"/>
33 <target depends="init" name="unoidl">
35 <exec dir="${ODKPATH}/WINexample.out/misc/" executable="${ODKPATH}/windows/bin/idlc.exe" timeout="600">
36 <arg line="-I. -I${ODKPATH}/idl ${ODKPATH}/examples/java/MinimalComponent/${INTERFACE_NAME}.idl"/>
39 <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
40 <arg line="./${RDB_NAME} /UCR ./${INTERFACE_NAME}.urd"/>
43 <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
44 <arg line="./${RDB_NAME} / ${ODKPATH}/windows/bin/applicat.rdb"/>
47 <exec dir="." executable="${ODKPATH}/windows/bin/javamaker.exe" timeout="600">
48 <arg line="-O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${RDB_NAME}"/>
50 <arg line="-T${PACKAGE_NAME}${INTERFACE_NAME} -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${INTERFACE_NAME}.urd"/>
56 <target depends="init,unoidl" name="compile">
57 <mkdir dir="classes"/>
58 <javac debug="on" destdir="./classes" srcdir="." >
60 <fileset dir="${ODKPATH}/classes/">
61 <include name="**/*.jar"/>
63 <pathelement location="./classes"/>
68 <target depends="compile,init" name="jar">
69 <jar basedir="./classes" compress="true" jarfile="${JAR_FILE_NAME}.jar" manifest="Manifest">
73 <target depends="compile,init,jar" name="all">