1
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- WARNING: Eclipse auto-generated file.
3
Any modifications will be overwritten.
4
To include a user specific buildfile here, simply create one in the same
5
directory with the processing instruction <?eclipse.ant.import?>
6
as the first entry and export the buildfile again. -->
7
<project basedir="." default="build" name="gryle">
8
<property environment="env"/>
9
<property name="ECLIPSE_HOME" value="../eclipse"/>
10
<property name="debuglevel" value="source,lines,vars"/>
11
<property name="target" value="1.5"/>
12
<property name="source" value="1.5"/>
13
<path id="gryle.classpath">
14
<pathelement location="bin"/>
18
<copy includeemptydirs="false" todir="bin">
19
<fileset dir="src" excludes="**/*.launch, **/*.java"/>
2
<project name="gryle" basedir="." default="build">
4
Copyright (C) 2007 Chris Lamb <chris@chris-lamb.co.uk>
5
See the file COPYING for details.
12
<property name="src" location="src/"/>
13
<property name="bin" location="bin/"/>
14
<property name="dist" location="dist/"/>
15
<property name="javadoc" location="javadoc/"/>
16
<property name="classes" location="uk/org/wuglug/gryle" />
22
19
<target name="clean">
25
<target depends="clean" name="cleanall"/>
26
<target depends="build-subprojects,build-project" name="build"/>
27
<target name="build-subprojects"/>
28
<target depends="init" name="build-project">
29
<echo message="${ant.project.name}: ${ant.file}"/>
30
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
32
<classpath refid="gryle.classpath"/>
20
<delete dir="${bin}"/>
21
<delete dir="${javadoc}"/>
22
<delete dir="${dist"/>
26
<target name="build" description="Build Gryle">
28
<javac debug="true" debuglevel="source,lines,vars" destdir="bin" source="1.5" target="1.5">
35
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
36
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
37
<copy todir="${ant.library.dir}">
38
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
40
<unzip dest="${ant.library.dir}">
41
<patternset includes="jdtCompilerAdapter.jar"/>
42
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
45
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
46
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
47
<antcall target="build"/>
34
<target name="javadoc" description="Generate documentation">
35
<mkdir dir="{$javadoc}"/>
36
<javadoc destdir="${javadoc">
37
<packageset dir="${src}" includes="${classes}"/>
42
<target name="jars" depends="build" description="Creates JAR files">
47
<target name="dist" depends="jars" description="Generate distribution tarballs">
48
<mkdir dir="${dist}"/>