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