ICE 3.4.2
[php5-ice-freebsdport.git] / java / demo / Database / library / build.xml
blob1a0a165b8417a928eef18f1aca8d23139fd05a45
1 <!--
2  **********************************************************************
4  Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
6  This copy of Ice is licensed to you under the terms described in the
7  ICE_LICENSE file included in this distribution.
9  **********************************************************************
10 -->
12 <project name="demo_Database_library" default="all" basedir=".">
14     <!-- set global properties for this build -->
15     <property name="top.dir" value="../../.."/>
16     
17     <!-- import common definitions -->
18     <import file="${top.dir}/config/common.xml"/>
20     <target name="generate" depends="init">
21         <!-- Create the output directory for generated code -->
22         <mkdir dir="${generated.dir}"/>
23         <slice2java outputdir="${generated.dir}" tie="on">
24             <includepath>
25                 <pathelement path="${slice.dir}" />
26             </includepath>
27             <fileset dir="." includes="Library.ice"/>
28             <fileset dir="." includes="Session.ice"/>
29             <fileset dir="." includes="Glacier2Session.ice"/>
30         </slice2java>
31     </target>
33     <target name="compile" depends="generate">
34         <mkdir dir="${class.dir}"/>
35         <javac srcdir=".:${generated.dir}" destdir="${class.dir}" debug="${debug}">
36             <exclude name="${generated.dir}/**"/>
37             <classpath refid="ice.classpath"/>
38             <compilerarg value="${javac.lint}"/>
39         </javac>
40     </target>
42     <target name="all" depends="compile"/>
44     <target name="clean">
45         <delete dir="${generated.dir}"/>
46         <delete dir="${class.dir}"/>
47     </target>
49 </project>