linamh/dev-java/jPod/files/build.xml

101 lines
3.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<project name="jPod" default="jar" basedir=".">
<description>
This is a window toolkit and basic rendering abstraction layer
</description>
<!-- set global properties for this build -->
<property name="user.name" value="intarsys consulting GmbH"/>
<property name="jPod.src.dir" location="src"/>
<property name="jPod.resource.dir" location="resource"/>
<target name="init">
<property file="build.properties" />
<property name="jPod.build.root" location="${build.dir}/jPod"/>
<property name="jPod.build.dir" location="${jPod.build.root}/build"/>
<property name="jPod.dist.dir" location="${jPod.build.root}/dist"/>
<property name="jPod.javadoc.dir" location="${jPod.build.root}/javadoc"/>
</target>
<target name="make-structure" depends="init">
<!-- Create the build directory structure used by compile -->
<mkdir dir="${jPod.build.dir}"/>
<mkdir dir="${jPod.dist.dir}"/>
<mkdir dir="${jPod.javadoc.dir}"/>
</target>
<target name="clean" depends="init" description="clean up" >
<!-- Delete the ${dist} directory trees -->
<delete dir="${jPod.javadoc.dir}"/>
<delete dir="${jPod.dist.dir}"/>
<delete dir="${jPod.build.dir}"/>
</target>
<target name="compile" depends="make-structure" description="jPod compile" >
<!-- Construct classpath -->
<path id="jPod.classpath">
<fileset dir="${libs.dir}">
<include name="**/${isrt.jar.name}.jar"/>
<include name="**/${iscwt.jar.name}.jar"/>
<include name="**/${jbig2.jar.name}.jar"/>
</fileset>
<pathelement path="${jPod.build.dir}"/>
</path>
<!-- Compile the java code -->
<javac compiler="javac1.6" target="1.6" source="1.6" srcdir="${jPod.src.dir}" destdir="${jPod.build.dir}" debug="true">
<classpath refid="jPod.classpath"/>
</javac>
</target>
<target name="jar" depends="compile" description="generate the distribution" >
<jar jarfile="${jPod.dist.dir}/${jPod.jar.name}.jar" basedir="${jPod.build.dir}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value=""/>
<attribute name="Class-Path" value="${isrt.jar.name}.jar ${iscwt.jar.name}.jar ${jbig2.jar.name}.jar"/>
</manifest>
<fileset dir="${jPod.resource.dir}">
<include name="**/*"/>
</fileset>
</jar>
</target>
<!-- Javadoc -->
<target name="javadoc" depends="make-structure">
<javadoc
packagenames="de.intarsys.pdf.*"
sourcepath="${jPod.src.dir}"
destdir="${jPod.javadoc.dir}"
author="true"
version="true"
use="true"
windowtitle="jPod API"
doctitle="jPod API" >
<classpath refid="jPod.classpath"/>
</javadoc>
</target>
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
<zip destfile="${jPod.dist.dir}/${jPod.jar.name}-build-src.zip">
<fileset dir="..">
<include name="jPod/src/**/*"/>
</fileset>
<fileset dir="${build.dir}">
<include name="jPod/javadoc/**/*.*"/>
</fileset>
<fileset dir="..">
<include name="jPod/ant/**/*.*"/>
</fileset>
</zip>
</target>
</project>