Browse Source

compiler attributes is used to determine command line arguments even in the fork case, this warning is misleading. PR: 31664

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276961 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
a245b4e9e6
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      src/main/org/apache/tools/ant/taskdefs/Javac.java

+ 1
- 7
src/main/org/apache/tools/ant/taskdefs/Javac.java View File

@@ -849,13 +849,7 @@ public class Javac extends MatchingTask {
public String getCompiler() { public String getCompiler() {
String compilerImpl = getCompilerVersion(); String compilerImpl = getCompilerVersion();
if (fork) { if (fork) {
if (isJdkCompiler(compilerImpl)) {
if (facade.hasBeenSet()) {
log("Since fork is true, ignoring compiler setting.",
Project.MSG_WARN);
}
compilerImpl = "extJavac";
} else {
if (!isJdkCompiler(compilerImpl)) {
log("Since compiler setting isn't classic or modern," log("Since compiler setting isn't classic or modern,"
+ "ignoring fork setting.", Project.MSG_WARN); + "ignoring fork setting.", Project.MSG_WARN);
} }


Loading…
Cancel
Save