2009-04-20 21:16:23 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-05-05 00:20:43 +02:00
|
|
|
<project name="isrt" default="jar" basedir=".">
|
2009-04-20 21:16:23 +02:00
|
|
|
<description>
|
|
|
|
The basic runtime tools and interfaces for intarsys components
|
|
|
|
</description>
|
|
|
|
|
|
|
|
<!-- set global properties for this build -->
|
|
|
|
<property name="user.name" value="intarsys consulting GmbH"/>
|
|
|
|
<property name="isrt.src.dir" location="src"/>
|
|
|
|
|
|
|
|
<target name="init">
|
2009-05-05 00:20:43 +02:00
|
|
|
<property file="build.properties" />
|
2009-04-20 21:16:23 +02:00
|
|
|
|
|
|
|
<property name="isrt.build.root" location="${build.dir}/isrt"/>
|
|
|
|
<property name="isrt.build.dir" location="${isrt.build.root}/build"/>
|
|
|
|
<property name="isrt.dist.dir" location="${isrt.build.root}/dist"/>
|
|
|
|
<property name="isrt.javadoc.dir" location="${isrt.build.root}/javadoc"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="make-structure" depends="init">
|
|
|
|
<!-- Create the build directory structure used by compile -->
|
|
|
|
<mkdir dir="${isrt.build.dir}"/>
|
|
|
|
<mkdir dir="${isrt.dist.dir}"/>
|
|
|
|
<mkdir dir="${isrt.javadoc.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" depends="init" description="clean up" >
|
|
|
|
<!-- Delete the ${dist} directory trees -->
|
|
|
|
<delete dir="${isrt.javadoc.dir}"/>
|
|
|
|
<delete dir="${isrt.dist.dir}"/>
|
|
|
|
<delete dir="${isrt.build.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="make-structure" description="isrt compile" >
|
|
|
|
<!-- Construct classpath -->
|
|
|
|
<path id="isrt.classpath">
|
|
|
|
<!-- <fileset dir="${libs.dir}">
|
|
|
|
<include name="**/${isrt.jar.name}.jar"/>
|
|
|
|
<include name="**/${jna.jar.name}.jar"/>
|
|
|
|
</fileset> -->
|
|
|
|
<pathelement path="${isrt.build.dir}"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<!-- Compile the java code -->
|
2011-11-19 11:52:05 +01:00
|
|
|
<javac compiler="javac1.6" target="1.6" source="1.6" srcdir="${isrt.src.dir}" destdir="${isrt.build.dir}" debug="true">
|
2009-04-20 21:16:23 +02:00
|
|
|
<classpath refid="isrt.classpath"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2009-05-05 00:20:43 +02:00
|
|
|
<target name="jar" depends="compile" description="generate the distribution" >
|
2009-04-20 21:16:23 +02:00
|
|
|
|
|
|
|
<jar jarfile="${isrt.dist.dir}/${isrt.jar.name}.jar" basedir="${isrt.build.dir}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${user.name}"/>
|
|
|
|
<attribute name="Main-Class" value=""/>
|
|
|
|
<!-- <attribute name="Class-Path" value="${isrt.jar.name}.jar ${jna.jar.name}.jar"/> -->
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Javadoc -->
|
|
|
|
<target name="javadoc" depends="make-structure">
|
|
|
|
<javadoc
|
|
|
|
packagenames="de.intarsys.tools.*"
|
|
|
|
sourcepath="${isrt.src.dir}"
|
|
|
|
destdir="${isrt.javadoc.dir}"
|
|
|
|
author="true"
|
|
|
|
version="true"
|
|
|
|
use="true"
|
|
|
|
windowtitle="tools API"
|
|
|
|
doctitle="tools API" >
|
|
|
|
<classpath refid="isrt.classpath"/>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
|
|
|
|
<zip destfile="${isrt.dist.dir}/${isrt.jar.name}-build-src.zip">
|
|
|
|
<fileset dir="..">
|
|
|
|
<include name="isrt/src/**/*"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${build.dir}">
|
|
|
|
<include name="isrt/javadoc/**/*.*"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="..">
|
|
|
|
<include name="isrt/ant/**/*.*"/>
|
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|