diff --git a/website/templates/setup/ant.html b/website/templates/setup/ant.html index 3781e01d..e817e6ec 100644 --- a/website/templates/setup/ant.html +++ b/website/templates/setup/ant.html @@ -5,7 +5,7 @@

This page explains how to compile your code when you use the Apache Ant build tool. We suggest you use ivy, the ant add-on that lets you fetch dependencies from the internet automatically.

- Lombok just needs to be on the classpath when you compile your code to do its work, so all you have to ensure, is that lombok is on the classpath in your <javac> task. + Lombok needs to be available when you compile your code to do its work. For non-modular builds on JDK22 and below, it is enough to put lombok on the classpath in your <javac> task. On JDK23 and above, you also need to enable annotation processing explicitly.

@@ -14,6 +14,13 @@ Assuming that you've put lombok.jar in a lib dir, your javac task would have to look like:
 <javac srcdir="src" destdir="build" source="1.8">
 	<classpath location="lib/lombok.jar" />
+</javac>
+

+ When compiling with JDK23 or newer, you also need to enable annotation processing explicitly, for example by adding lombok to the processor path:

+<javac srcdir="src" destdir="build" source="1.8">
+	<classpath location="lib/lombok.jar" />
+	<compilerarg value="-processorpath" />
+	<compilerarg path="lib/lombok.jar" />
 </javac>

@@ -24,6 +31,8 @@ <dependencies> <dependency org="org.projectlombok" name="lombok" rev="${version}" conf="build->master" /> </dependencies> +

+ When compiling with JDK23 or newer, make sure the ivy-resolved lombok jar is also passed to javac as an annotation processor path, or enable annotation processing explicitly with -proc:full.