linamh/dev-java/isrt/files/build.xml
Mario Fetka 05f29c489e Update Requ to 1.7 java
Package-Manager: portage-2.2.8-r1
RepoMan-Options: --force
2014-06-23 11:48:30 +02:00

96 lines
3.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="isrt" default="jar" 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="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.7" target="1.7" source="1.7" srcdir="${isrt.src.dir}" destdir="${isrt.build.dir}" debug="true" encoding="iso-8859-1">
<classpath refid="isrt.classpath"/>
</javac>
</target>
<target name="jar" 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>