linamh/dev-java/jPodRenderer/files/build.xml
geos_one b29eb34351 pre git
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@3049 6952d904-891a-0410-993b-d76249ca496b
2011-11-19 10:52:05 +00:00

109 lines
4.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="jPodRenderer" 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="jPodRenderer.src.dir" location="src"/>
<property name="jPodRenderer.resource.dir" location="resource"/>
<target name="init">
<property file="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.6" target="1.6" source="1.6" srcdir="${jPodRenderer.src.dir}" destdir="${jPodRenderer.build.dir}" debug="true">
<classpath refid="jPodRenderer.classpath"/>
</javac>
</target>
<target name="jar" 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 ${isnativec.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>