From ba2679a4a267253d06fd92bf7e3c6c60d7e6869f Mon Sep 17 00:00:00 2001
From: Steve Loughran
+The inherited "fork" attribute is set to true by default. +
+-The "compiler" attribute is ignored, as it is forced to use the Apt compiler +The inherited "compiler" attribute is ignored, as it is forced to use the Apt compiler
Using the Apt compiler with the "compile" option set to "true" diff --git a/src/main/org/apache/tools/ant/taskdefs/Apt.java b/src/main/org/apache/tools/ant/taskdefs/Apt.java index 25b6b02d9..0d9080a4a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Apt.java +++ b/src/main/org/apache/tools/ant/taskdefs/Apt.java @@ -103,6 +103,7 @@ public class Apt public Apt() { super(); super.setCompiler(AptCompilerAdapter.class.getName()); + setFork(true); } /** @@ -125,7 +126,7 @@ public class Apt } /** - * Set the fork attribute. + * Set the fork attribute (optional, default=true). * If fork is true run the external apt command. * If fork is false run the apt compiler in the same jvm as the task. * @param fork if true use the external command.