2009-04-20 22:22:26 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-04-20 22:35:48 +02:00
|
|
|
<project name="jPod" default="build-jars" basedir="../">
|
2009-04-20 22:22:26 +02:00
|
|
|
<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"/>
|
2009-04-20 22:35:48 +02:00
|
|
|
<property name="jPod.src.dir" location="src"/>
|
|
|
|
<property name="jPod.resource.dir" location="resource"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<property file="ant/build.properties" />
|
|
|
|
|
2009-04-20 22:35:48 +02:00
|
|
|
<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"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="make-structure" depends="init">
|
|
|
|
<!-- Create the build directory structure used by compile -->
|
2009-04-20 22:35:48 +02:00
|
|
|
<mkdir dir="${jPod.build.dir}"/>
|
|
|
|
<mkdir dir="${jPod.dist.dir}"/>
|
|
|
|
<mkdir dir="${jPod.javadoc.dir}"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" depends="init" description="clean up" >
|
|
|
|
<!-- Delete the ${dist} directory trees -->
|
2009-04-20 22:35:48 +02:00
|
|
|
<delete dir="${jPod.javadoc.dir}"/>
|
|
|
|
<delete dir="${jPod.dist.dir}"/>
|
|
|
|
<delete dir="${jPod.build.dir}"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</target>
|
|
|
|
|
2009-04-20 22:35:48 +02:00
|
|
|
<target name="compile" depends="make-structure" description="jPod compile" >
|
2009-04-20 22:22:26 +02:00
|
|
|
<!-- Construct classpath -->
|
2009-04-20 22:35:48 +02:00
|
|
|
<path id="jPod.classpath">
|
2009-04-20 22:22:26 +02:00
|
|
|
<fileset dir="${libs.dir}">
|
|
|
|
<include name="**/${isrt.jar.name}.jar"/>
|
2009-04-20 22:35:48 +02:00
|
|
|
<include name="**/${iscwt.jar.name}.jar"/>
|
|
|
|
<include name="**/${jbig2.jar.name}.jar"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</fileset>
|
2009-04-20 22:35:48 +02:00
|
|
|
<pathelement path="${jPod.build.dir}"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</path>
|
|
|
|
|
|
|
|
<!-- Compile the java code -->
|
2009-04-20 22:35:48 +02:00
|
|
|
<javac compiler="javac1.4" target="1.4" source="1.4" srcdir="${jPod.src.dir}" destdir="${jPod.build.dir}" debug="true">
|
|
|
|
<classpath refid="jPod.classpath"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build-jars" depends="compile" description="generate the distribution" >
|
|
|
|
|
2009-04-20 22:35:48 +02:00
|
|
|
<jar jarfile="${jPod.dist.dir}/${jPod.jar.name}.jar" basedir="${jPod.build.dir}">
|
2009-04-20 22:22:26 +02:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${user.name}"/>
|
|
|
|
<attribute name="Main-Class" value=""/>
|
2009-04-20 22:35:48 +02:00
|
|
|
<attribute name="Class-Path" value="${isrt.jar.name}.jar ${iscwt.jar.name}.jar ${jbig2.jar.name}.jar"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</manifest>
|
2009-04-20 22:35:48 +02:00
|
|
|
<fileset dir="${jPod.resource.dir}">
|
2009-04-20 22:22:26 +02:00
|
|
|
<include name="**/*"/>
|
2009-04-20 22:35:48 +02:00
|
|
|
</fileset>
|
2009-04-20 22:22:26 +02:00
|
|
|
</jar>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Javadoc -->
|
|
|
|
<target name="javadoc" depends="make-structure">
|
|
|
|
<javadoc
|
2009-04-20 22:35:48 +02:00
|
|
|
packagenames="de.intarsys.pdf.*"
|
|
|
|
sourcepath="${jPod.src.dir}"
|
|
|
|
destdir="${jPod.javadoc.dir}"
|
2009-04-20 22:22:26 +02:00
|
|
|
author="true"
|
|
|
|
version="true"
|
|
|
|
use="true"
|
2009-04-20 22:35:48 +02:00
|
|
|
windowtitle="jPod API"
|
|
|
|
doctitle="jPod API" >
|
|
|
|
<classpath refid="jPod.classpath"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
|
2009-04-20 22:35:48 +02:00
|
|
|
<zip destfile="${jPod.dist.dir}/${jPod.jar.name}-build-src.zip">
|
2009-04-20 22:22:26 +02:00
|
|
|
<fileset dir="..">
|
2009-04-20 22:35:48 +02:00
|
|
|
<include name="jPod/src/**/*"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</fileset>
|
|
|
|
<fileset dir="${build.dir}">
|
2009-04-20 22:35:48 +02:00
|
|
|
<include name="jPod/javadoc/**/*.*"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</fileset>
|
|
|
|
<fileset dir="..">
|
2009-04-20 22:35:48 +02:00
|
|
|
<include name="jPod/ant/**/*.*"/>
|
2009-04-20 22:22:26 +02:00
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|