From a245b4e9e60dc1f59172acf50988de0ed5592ee4 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 26 Oct 2004 14:18:39 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/taskdefs/Javac.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Javac.java b/src/main/org/apache/tools/ant/taskdefs/Javac.java index 3c1f0dae6..356a0a4c9 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Javac.java +++ b/src/main/org/apache/tools/ant/taskdefs/Javac.java @@ -849,13 +849,7 @@ public class Javac extends MatchingTask { public String getCompiler() { String compilerImpl = getCompilerVersion(); 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," + "ignoring fork setting.", Project.MSG_WARN); }