1.2.5
by Richard Leo Marsh Warburton
eclipse build script |
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"/> |
|
15 |
</path>
|
|
16 |
<target name="init"> |
|
17 |
<mkdir dir="bin"/> |
|
18 |
<copy includeemptydirs="false" todir="bin"> |
|
19 |
<fileset dir="src" excludes="**/*.launch, **/*.java"/> |
|
20 |
</copy>
|
|
21 |
</target>
|
|
22 |
<target name="clean"> |
|
23 |
<delete dir="bin"/> |
|
24 |
</target>
|
|
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}"> |
|
31 |
<src path="src"/> |
|
32 |
<classpath refid="gryle.classpath"/> |
|
33 |
</javac>
|
|
34 |
</target>
|
|
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"/> |
|
39 |
</copy>
|
|
40 |
<unzip dest="${ant.library.dir}"> |
|
41 |
<patternset includes="jdtCompilerAdapter.jar"/> |
|
42 |
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> |
|
43 |
</unzip>
|
|
44 |
</target>
|
|
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"/> |
|
48 |
</target>
|
|
49 |
</project>
|