d3ff193fc9
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1151 6952d904-891a-0410-993b-d76249ca496b
111 lines
4.1 KiB
XML
111 lines
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="jPodRenderer" default="build-jars" 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="jPodRenderer.src.dir" location="src"/>
|
|
<property name="jPodRenderer.resource.dir" location="resource"/>
|
|
|
|
<target name="init">
|
|
<property file="ant/build.properties" />
|
|
|
|
<property name="jPodRenderer.build.root" location="${build.dir}/jPodRenderer"/>
|
|
<property name="jPodRenderer.build.dir" location="${jPodRenderer.build.root}/build"/>
|
|
<property name="jPodRenderer.dist.dir" location="${jPodRenderer.build.root}/dist"/>
|
|
<property name="jPodRenderer.javadoc.dir" location="${jPodRenderer.build.root}/javadoc"/>
|
|
|
|
</target>
|
|
|
|
<target name="make-structure" depends="init">
|
|
<!-- Create the build directory structure used by compile -->
|
|
<mkdir dir="${jPodRenderer.build.dir}"/>
|
|
<mkdir dir="${jPodRenderer.dist.dir}"/>
|
|
<mkdir dir="${jPodRenderer.javadoc.dir}"/>
|
|
</target>
|
|
|
|
<target name="clean" depends="init" description="clean up" >
|
|
<!-- Delete the ${dist} directory trees -->
|
|
<delete dir="${jPodRenderer.javadoc.dir}"/>
|
|
<delete dir="${jPodRenderer.dist.dir}"/>
|
|
<delete dir="${jPodRenderer.build.dir}"/>
|
|
</target>
|
|
|
|
<target name="compile" depends="make-structure" description="jPodRenderer compile" >
|
|
<!-- Construct classpath -->
|
|
<path id="jPodRenderer.classpath">
|
|
<fileset dir="${libs.dir}">
|
|
<include name="**/${isrt.jar.name}.jar"/>
|
|
<include name="**/${isnativec.jar.name}.jar"/>
|
|
<include name="**/${isfreetype.jar.name}.jar"/>
|
|
<include name="**/${iscwt.jar.name}.jar"/>
|
|
<include name="**/${jPod.jar.name}.jar"/>
|
|
<include name="**/${jbig2.jar.name}.jar"/>
|
|
<include name="**/${jna.jar.name}.jar"/>
|
|
<include name="**/${swt.jar.name}.jar"/>
|
|
<include name="**/${jai_codec.jar.name}.jar"/>
|
|
<include name="**/${jai_core.jar.name}.jar"/>
|
|
<include name="**/${jai_imageio.jar.name}.jar"/>
|
|
</fileset>
|
|
<pathelement path="${jPodRenderer.build.dir}"/>
|
|
</path>
|
|
|
|
<!-- Compile the java code -->
|
|
<javac compiler="javac1.4" target="1.4" source="1.4" srcdir="${jPodRenderer.src.dir}" destdir="${jPodRenderer.build.dir}" debug="true">
|
|
<classpath refid="jPodRenderer.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="build-jars" depends="compile" description="generate the distribution" >
|
|
|
|
<jar jarfile="${jPodRenderer.dist.dir}/${jPodRenderer.jar.name}.jar" basedir="${jPodRenderer.build.dir}">
|
|
<manifest>
|
|
<attribute name="Built-By" value="${user.name}"/>
|
|
<attribute name="Main-Class" value=""/>
|
|
<attribute name="Class-Path" value="${isrt.jar.name}.jar ${isnative.jar.name}.jar ${isfreetype.jar.name}.jar
|
|
${iscwt.jar.name}.jar ${jPod.jar.name}.jar ${jbig2.jar.name}.jar ${jna.jar.name}.jar ${swt.jar.name}.jar
|
|
${jai_codec.jar.name}.jar ${jai_core.jar.name}.jar ${jai_imageio.jar.name}.jar"/>
|
|
</manifest>
|
|
<fileset dir="${jPodRenderer.resource.dir}">
|
|
<include name="**/*"/>
|
|
</fileset>
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<!-- Javadoc -->
|
|
<target name="javadoc" depends="make-structure">
|
|
<javadoc
|
|
packagenames="de.intarsys.pdf.platform.*"
|
|
sourcepath="${jPodRenderer.src.dir}"
|
|
destdir="${jPodRenderer.javadoc.dir}"
|
|
author="true"
|
|
version="true"
|
|
use="true"
|
|
windowtitle="jPodRenderer API"
|
|
doctitle="jPodRenderer API" >
|
|
<classpath refid="jPodRenderer.classpath"/>
|
|
</javadoc>
|
|
</target>
|
|
|
|
|
|
|
|
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
|
|
<zip destfile="${jPodRenderer.dist.dir}/${jPodRenderer.jar.name}-build-src.zip">
|
|
<fileset dir="..">
|
|
<include name="jPodRenderer/src/**/*"/>
|
|
</fileset>
|
|
<fileset dir="${build.dir}">
|
|
<include name="jPodRenderer/javadoc/**/*.*"/>
|
|
</fileset>
|
|
<fileset dir="..">
|
|
<include name="jPodRenderer/ant/**/*.*"/>
|
|
</fileset>
|
|
</zip>
|
|
</target>
|
|
|
|
</project>
|
|
|