aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-28 06:04:08 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-28 06:04:08 +0200
commitd4556f8539ce707a5bec846ba90108bdea22644c (patch)
treecc9447c6838e93540c167ecb2fe0bb4a421ca06d /build.xml
parent69844725fb9256a38c8f3e16d72a24c20a819e98 (diff)
downloadlombok-d4556f8539ce707a5bec846ba90108bdea22644c.tar.gz
lombok-d4556f8539ce707a5bec846ba90108bdea22644c.tar.bz2
lombok-d4556f8539ce707a5bec846ba90108bdea22644c.zip
All lombok code is now targeted at java 1.5, except for the javac-specific stuff, which is on 1.6.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 4179d3a7..c3ea08c6 100644
--- a/build.xml
+++ b/build.xml
@@ -29,7 +29,14 @@
<target name="compile">
<mkdir dir="build/lombok" />
- <javac srcdir="src" debug="on" destdir="build/lombok">
+ <!-- This version trickery is so that an eclipse running in a JVM 1.5 will run properly (It'll never touch the javac files and hence never trigger a Bad Class Version Number error
+ but for javac we definitely cannot support javac 1.5, partly because they completely rewrote large swaths of javac, and partly because our injection mechanism (annotations)
+ doesn't work very well on javac 1.5, hence, when using javac, we do demand you're on 1.6. -->
+ <javac srcdir="src" debug="on" destdir="build/lombok" target="1.5" excludes="lombok/javac/**">
+ <classpath refid="lombok.deps.path" />
+ <classpath refid="lombok.libs.path" />
+ </javac>
+ <javac srcdir="src" debug="on" destdir="build/lombok" target="1.6" includes="lombok/javac/**">
<classpath refid="lombok.deps.path" />
<classpath refid="lombok.libs.path" />
</javac>
@@ -38,7 +45,7 @@
<echo file="build/lombok/META-INF/services/javax.annotation.processing.Processor">lombok.javac.apt.Processor</echo>
<mkdir dir="build/eclipse.agent" />
- <javac srcdir="src_eclipseagent" debug="on" destdir="build/eclipse.agent">
+ <javac srcdir="src_eclipseagent" debug="on" destdir="build/eclipse.agent" target="1.5">
<classpath refid="eclipse.agent.deps.path" />
<classpath refid="eclipse.agent.libs.path" />
</javac>