1 <!-- To build distribution: ant -f build-windows.xml -->
\r
2 <!-- To compile only: ant compile -f build-windows.xml -->
\r
3 <!-- To clean dir structure: ant clean -f build-windows.xml -->
\r
5 <project name="yaz4j" default="build-dist" basedir=".">
\r
7 <description>Build the java side of Yaz4J</description>
\r
9 <property name="version" value="0.9.3-windows-x86-32"/>
\r
10 <property name="src" location="src"/>
\r
11 <property name="bin" location="bin"/>
\r
12 <property name="distributions" location="distributions"/>
\r
14 <path id="project.classpath">
\r
15 <pathelement location="${bin}"/>
\r
18 <target name="init">
\r
19 <mkdir dir="${bin}"/>
\r
22 <target name="compile" depends="init" description="compile the source">
\r
23 <javac srcdir="${src}" destdir="${bin}">
\r
24 <classpath refid="project.classpath"/>
\r
28 <target name="build-dist" depends="compile" description="generate the distribution">
\r
29 <mkdir dir="${distributions}/${version}"/>
\r
30 <copy file="libyaz4j/lib/yaz4j.dll" tofile="${distributions}/${version}/yaz4j.dll"/>
\r
31 <!-- copy file="dependencies/yaz_3.0.14/bin/yaz3.dll" tofile="${distributions}/${version}/yaz3.dll"/ -->
\r
32 <jar jarfile="${distributions}/${version}/yaz4j.jar" basedir="${bin}">
\r
34 <attribute name="Version" value="${version}"/>
\r
35 <attribute name="Author" value="Talis Information Ltd"/>
\r
36 <attribute name="About" value="Java wrapper for the ZOOM API of YAZ"/>
\r
37 <attribute name="Main-Class" value="org.yaz4j.Yaz4jMain"/>
\r
42 <target name="clean" description="clean up" >
\r
43 <!-- Delete various paths as part of the clean trees -->
\r
44 <delete dir="${bin}"/>
\r
45 <!-- delete dir="${distributions}/${version}"/ -->
\r