From ba2679a4a267253d06fd92bf7e3c6c60d7e6869f Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Tue, 8 Feb 2005 18:52:38 +0000 Subject: [PATCH] flip fork bit on Apt git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277620 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/apt.html | 7 ++++++- src/main/org/apache/tools/ant/taskdefs/Apt.java | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/manual/CoreTasks/apt.html b/docs/manual/CoreTasks/apt.html index 08117c4bd..010a4f288 100644 --- a/docs/manual/CoreTasks/apt.html +++ b/docs/manual/CoreTasks/apt.html @@ -104,8 +104,13 @@ AnnotationProcessor instances.

Notes

+ +

+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.