From 6080a1bee555df52e73336081f54cdf2a087df17 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 26 Jan 2005 15:09:18 +0000 Subject: [PATCH] looking at the Gump build for java-service-wrapper, -source 1.2 seems to work git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277472 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java b/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java index 3dfdadc2a..3eaeaea8f 100644 --- a/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java +++ b/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java @@ -326,8 +326,8 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter { if (t.equals("1.1") || t.equals("1.2") || t.equals("1.3") || t.equals("1.4")) { String s = t; - if (t.equals("1.1") || t.equals("1.2")) { - // 1.5.0 doesn't support -source 1.1 or -source 1.2 + if (t.equals("1.1")) { + // 1.5.0 doesn't support -source 1.1 s = "1.3"; } attributes.log("", Project.MSG_WARN);