b29eb34351
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@3049 6952d904-891a-0410-993b-d76249ca496b
96 lines
3.1 KiB
XML
96 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="jbig2" default="jar" basedir=".">
|
|
<description>
|
|
The JPedal JBIG2 Image Decoder is a 100% pure Java image decoder for the JBIG2 file format.
|
|
</description>
|
|
|
|
<!-- set global properties for this build -->
|
|
<property name="user.name" value="intarsys consulting GmbH"/>
|
|
<property name="jbig2.src.dir" location="src"/>
|
|
|
|
<target name="init">
|
|
<property file="build.properties" />
|
|
|
|
<property name="jbig2.build.root" location="${build.dir}/jbig2"/>
|
|
<property name="jbig2.build.dir" location="${jbig2.build.root}/build"/>
|
|
<property name="jbig2.dist.dir" location="${jbig2.build.root}/dist"/>
|
|
<property name="jbig2.javadoc.dir" location="${jbig2.build.root}/javadoc"/>
|
|
|
|
</target>
|
|
|
|
<target name="make-structure" depends="init">
|
|
<!-- Create the build directory structure used by compile -->
|
|
<mkdir dir="${jbig2.build.dir}"/>
|
|
<mkdir dir="${jbig2.dist.dir}"/>
|
|
<mkdir dir="${jbig2.javadoc.dir}"/>
|
|
</target>
|
|
|
|
<target name="clean" depends="init" description="clean up" >
|
|
<!-- Delete the ${dist} directory trees -->
|
|
<delete dir="${jbig2.javadoc.dir}"/>
|
|
<delete dir="${jbig2.dist.dir}"/>
|
|
<delete dir="${jbig2.build.dir}"/>
|
|
</target>
|
|
|
|
<target name="compile" depends="make-structure" description="jbig2 compile" >
|
|
<!-- Construct classpath -->
|
|
<path id="jbig2.classpath">
|
|
<!-- <fileset dir="${libs.dir}">
|
|
<include name="**/${jbig2.jar.name}.jar"/>
|
|
<include name="**/${jna.jar.name}.jar"/>
|
|
</fileset> -->
|
|
<pathelement path="${jbig2.build.dir}"/>
|
|
</path>
|
|
|
|
<!-- Compile the java code -->
|
|
<javac compiler="javac1.6" target="1.6" source="1.6" srcdir="${jbig2.src.dir}" destdir="${jbig2.build.dir}" debug="true">
|
|
<classpath refid="jbig2.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="jar" depends="compile" description="generate the distribution" >
|
|
|
|
<jar jarfile="${jbig2.dist.dir}/${jbig2.jar.name}.jar" basedir="${jbig2.build.dir}">
|
|
<manifest>
|
|
<attribute name="Built-By" value="${user.name}"/>
|
|
<attribute name="Main-Class" value=""/>
|
|
<!-- <attribute name="Class-Path" value="${jbig2.jar.name}.jar ${jna.jar.name}.jar"/> -->
|
|
</manifest>
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<!-- Javadoc -->
|
|
<target name="javadoc" depends="make-structure">
|
|
<javadoc
|
|
packagenames="org.jpedal.jbig2.*"
|
|
sourcepath="${jbig2.src.dir}"
|
|
destdir="${jbig2.javadoc.dir}"
|
|
author="true"
|
|
version="true"
|
|
use="true"
|
|
windowtitle="tools API"
|
|
doctitle="tools API" >
|
|
<classpath refid="jbig2.classpath"/>
|
|
</javadoc>
|
|
</target>
|
|
|
|
|
|
|
|
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
|
|
<zip destfile="${jbig2.dist.dir}/${jbig2.jar.name}-build-src.zip">
|
|
<fileset dir="..">
|
|
<include name="jbig2/src/**/*"/>
|
|
</fileset>
|
|
<fileset dir="${build.dir}">
|
|
<include name="jbig2/javadoc/**/*.*"/>
|
|
</fileset>
|
|
<fileset dir="..">
|
|
<include name="jbig2/ant/**/*.*"/>
|
|
</fileset>
|
|
</zip>
|
|
</target>
|
|
|
|
</project>
|
|
|