diff options
author | Jan Matèrne <jan@materne.de> | 2019-08-15 12:23:29 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-08-22 23:15:21 +0200 |
commit | e6090dbd741925aae7becec3d5f2355ed2b6c4cc (patch) | |
tree | 71ba286e6e09e6b86d97236a8beea449384c86e4 /build.xml | |
parent | a835579f79267616a0de7b4f47f9a39d987341b7 (diff) | |
download | lombok-e6090dbd741925aae7becec3d5f2355ed2b6c4cc.tar.gz lombok-e6090dbd741925aae7becec3d5f2355ed2b6c4cc.tar.bz2 lombok-e6090dbd741925aae7becec3d5f2355ed2b6c4cc.zip |
FailFast if Ant version does not support javac-modulepath
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -171,6 +171,15 @@ the common tasks and can be called on to run the main aspects of all the sub-scr </target> <target name="compile" depends="version, ensureBuildDeps, -unpackLibs, -ensureJdk9" description="Compiles the code."> + <fail> +For compiling with Java9 'modulepath' an Ant version 1.9.7+ or 1.10.0+ is required. +Your current version is: + ${ant.version} + <condition> + <not><antversion atleast="1.9.8"/></not> + </condition> + </fail> + <!-- ant includes the destination dir on the classpath (and there are good reasons to do this), but that also means the bleeding edge lombok from the previous build is run, which means if there are bugs in it, you can't compile anymore until you 'ant clean'. That's very much not desired, so we kill the processor, which stops lombok from running. |