mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 16:15:29 +00:00
FailFast if Ant version does not support javac-modulepath
This commit is contained in:
1 parent
a835579f79
commit
e6090dbd74
1 file changed
+9
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user