Added a test.
[yaz4j-moved-to-github.git] / build-windows.xml
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
4 \r
5 <project name="yaz4j" default="build-dist" basedir=".">\r
6 \r
7   <description>Build the java side of Yaz4J</description>\r
8 \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
13         \r
14   <path id="project.classpath">\r
15     <pathelement location="${bin}"/>\r
16   </path>\r
17 \r
18   <target name="init">\r
19     <mkdir dir="${bin}"/>\r
20   </target>\r
21 \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
25     </javac>\r
26   </target>\r
27 \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
33       <manifest>\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
38       </manifest>\r
39     </jar>\r
40   </target>\r
41 \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
46   </target>\r
47 \r
48 </project>\r