2009-04-20 23:21:33 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-05-05 00:22:43 +02:00
|
|
|
<project name="jPodRenderer" default="jar" basedir=".">
|
2009-04-20 23:21:33 +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"/>
|
|
|
|
<property name="jPodRenderer.src.dir" location="src"/>
|
|
|
|
<property name="jPodRenderer.resource.dir" location="resource"/>
|
|
|
|
|
|
|
|
<target name="init">
|
2009-05-05 00:22:43 +02:00
|
|
|
<property file="build.properties" />
|
2009-04-20 23:21:33 +02:00
|
|
|
|
|
|
|
<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 -->
|
2011-11-19 15:48:42 +01:00
|
|
|
<javac compiler="javac1.6" target="1.6" source="1.6" srcdir="${jPodRenderer.src.dir}" destdir="${jPodRenderer.build.dir}" debug="true" encoding="iso-8859-1">
|
2009-04-20 23:21:33 +02:00
|
|
|
<classpath refid="jPodRenderer.classpath"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2009-05-05 00:22:43 +02:00
|
|
|
<target name="jar" depends="compile" description="generate the distribution" >
|
2009-04-20 23:21:33 +02:00
|
|
|
|
|
|
|
<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=""/>
|
2009-05-05 00:51:15 +02:00
|
|
|
<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"/>
|
2009-04-20 23:21:33 +02:00
|
|
|
</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>
|
|
|
|
|