5860781de4
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1139 6952d904-891a-0410-993b-d76249ca496b
96 lines
3.0 KiB
XML
96 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="isrt" default="build-jars" basedir="../">
|
|
<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">
|
|
<property file="ant/build.properties" />
|
|
|
|
<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 -->
|
|
<javac compiler="javac1.4" target="1.4" source="1.4" srcdir="${isrt.src.dir}" destdir="${isrt.build.dir}" debug="true">
|
|
<classpath refid="isrt.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="build-jars" depends="compile" description="generate the distribution" >
|
|
|
|
<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>
|
|
|