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