xref: /aoo42x/main/ridljar/java/ridl/build.xml (revision bee6bcb9)
1*bee6bcb9SDamjan Jovanovic<?xml version="1.0" encoding="UTF-8"?>
2*bee6bcb9SDamjan Jovanovic<!--***********************************************************
3*bee6bcb9SDamjan Jovanovic *
4*bee6bcb9SDamjan Jovanovic * Licensed to the Apache Software Foundation (ASF) under one
5*bee6bcb9SDamjan Jovanovic * or more contributor license agreements.  See the NOTICE file
6*bee6bcb9SDamjan Jovanovic * distributed with this work for additional information
7*bee6bcb9SDamjan Jovanovic * regarding copyright ownership.  The ASF licenses this file
8*bee6bcb9SDamjan Jovanovic * to you under the Apache License, Version 2.0 (the
9*bee6bcb9SDamjan Jovanovic * "License"); you may not use this file except in compliance
10*bee6bcb9SDamjan Jovanovic * with the License.  You may obtain a copy of the License at
11*bee6bcb9SDamjan Jovanovic *
12*bee6bcb9SDamjan Jovanovic *   http://www.apache.org/licenses/LICENSE-2.0
13*bee6bcb9SDamjan Jovanovic *
14*bee6bcb9SDamjan Jovanovic * Unless required by applicable law or agreed to in writing,
15*bee6bcb9SDamjan Jovanovic * software distributed under the License is distributed on an
16*bee6bcb9SDamjan Jovanovic * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*bee6bcb9SDamjan Jovanovic * KIND, either express or implied.  See the License for the
18*bee6bcb9SDamjan Jovanovic * specific language governing permissions and limitations
19*bee6bcb9SDamjan Jovanovic * under the License.
20*bee6bcb9SDamjan Jovanovic *
21*bee6bcb9SDamjan Jovanovic ***********************************************************-->
22*bee6bcb9SDamjan Jovanovic
23*bee6bcb9SDamjan Jovanovic
24*bee6bcb9SDamjan Jovanovic<project name="ridl" default="main">
25*bee6bcb9SDamjan Jovanovic
26*bee6bcb9SDamjan Jovanovic    <property file="../../../ant.properties"/>
27*bee6bcb9SDamjan Jovanovic    <import file="${SRC_ROOT}/solenv/ant/aoo-ant.xml"/>
28*bee6bcb9SDamjan Jovanovic
29*bee6bcb9SDamjan Jovanovic    <target name="init-project">
30*bee6bcb9SDamjan Jovanovic
31*bee6bcb9SDamjan Jovanovic        <path id="main.classpath">
32*bee6bcb9SDamjan Jovanovic            <pathelement location="${OUTDIR}/bin/ridl.jar"/>
33*bee6bcb9SDamjan Jovanovic            <pathelement location="${OUTDIR}/bin/unoloader.jar"/>
34*bee6bcb9SDamjan Jovanovic        </path>
35*bee6bcb9SDamjan Jovanovic
36*bee6bcb9SDamjan Jovanovic    </target>
37*bee6bcb9SDamjan Jovanovic
38*bee6bcb9SDamjan Jovanovic    <property name="javamaker.udkapi.flag" location="${main.build.dir}/javamaker.udkapi.flag"/>
39*bee6bcb9SDamjan Jovanovic
40*bee6bcb9SDamjan Jovanovic    <target name="check-javamaker-udkapi">
41*bee6bcb9SDamjan Jovanovic        <uptodate property="javamaker.udkapi.skip" srcfile="${OUTDIR}/bin/udkapi.rdb" targetfile="${javamaker.udkapi.flag}"/>
42*bee6bcb9SDamjan Jovanovic    </target>
43*bee6bcb9SDamjan Jovanovic
44*bee6bcb9SDamjan Jovanovic    <target name="javamaker-udkapi" depends="check-javamaker-udkapi" extensionOf="pre-compile" unless="${javamaker.udkapi.skip}">
45*bee6bcb9SDamjan Jovanovic        <mkdir dir="${main.build.dir}"/>
46*bee6bcb9SDamjan Jovanovic        <javamaker
47*bee6bcb9SDamjan Jovanovic            input-rdb="${OUTDIR}/bin/udkapi.rdb"
48*bee6bcb9SDamjan Jovanovic            output-directory="${main.build.dir}"/>
49*bee6bcb9SDamjan Jovanovic        <touch file="${javamaker.udkapi.flag}"/>
50*bee6bcb9SDamjan Jovanovic    </target>
51*bee6bcb9SDamjan Jovanovic
52*bee6bcb9SDamjan Jovanovic</project>
53*bee6bcb9SDamjan Jovanovic
54