diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-28 06:04:08 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-28 06:04:08 +0200 |
commit | d4556f8539ce707a5bec846ba90108bdea22644c (patch) | |
tree | cc9447c6838e93540c167ecb2fe0bb4a421ca06d /build.xml | |
parent | 69844725fb9256a38c8f3e16d72a24c20a819e98 (diff) | |
download | lombok-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.xml | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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> |