Branch libreoffice-5-0-4
[LibreOffice.git] / odk / examples / java / ConverterServlet / web.xml
blob10dfde5ecee499bd23817b8ed0f992220efa8b11
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18 -->
19 <project name="MinimalComponent" basedir="." default="all">
21   <target name="init">
22         <!--
23          In this target you have to change all parts, so that the properties
24          fit to your odk installation and to your service
25          -->
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"/>
32    </target>
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"/>
37        </exec>
39        <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
40              <arg line="./${RDB_NAME} /UCR ./${INTERFACE_NAME}.urd"/>
41        </exec>
43        <exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
44              <arg line="./${RDB_NAME} / ${ODKPATH}/windows/bin/applicat.rdb"/>
45        </exec>
47        <exec dir="." executable="${ODKPATH}/windows/bin/javamaker.exe" timeout="600">
48              <arg line="-O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${RDB_NAME}"/>
49 <!--
50              <arg line="-T${PACKAGE_NAME}${INTERFACE_NAME} -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${INTERFACE_NAME}.urd"/>
51  -->
52        </exec>
54    </target>
56    <target depends="init,unoidl" name="compile">
57        <mkdir dir="classes"/>
58        <javac debug="on" destdir="./classes" srcdir="." >
59                <classpath>
60                    <fileset dir="${ODKPATH}/classes/">
61                            <include name="**/*.jar"/>
62                    </fileset>
63                    <pathelement location="./classes"/>
64                </classpath>
65          </javac>
66     </target>
68      <target depends="compile,init" name="jar">
69         <jar basedir="./classes" compress="true" jarfile="${JAR_FILE_NAME}.jar" manifest="Manifest">
70         </jar>
71      </target>
73     <target depends="compile,init,jar" name="all">
74         <!-- WRITEME -->
75     </target>
76 </project>