Browse Source

flip fork bit on Apt

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277620 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
ba2679a4a2
2 changed files with 8 additions and 2 deletions
  1. +6
    -1
      docs/manual/CoreTasks/apt.html
  2. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/Apt.java

+ 6
- 1
docs/manual/CoreTasks/apt.html View File

@@ -104,8 +104,13 @@ AnnotationProcessor instances.</p>


<h3>Notes</h3>

<p>
The inherited "fork" attribute is set to true by default.
</p>

<p>
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
</p>

<p>Using the Apt compiler with the "compile" option set to "true"


+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/Apt.java View File

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


Loading…
Cancel
Save