From 5856b320e6c55a82d737df725ea1373dc2a25d94 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 23 Aug 2004 15:12:29 +0000 Subject: [PATCH] Changed from using deprecated APIs. --- .../src/org/aspectj/tools/ant/taskdefs/Ajc2.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc2.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc2.java index 7e7ded5cf..7cc51c450 100644 --- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc2.java +++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc2.java @@ -16,6 +16,8 @@ import org.apache.tools.ant.*; import org.apache.tools.ant.types.*; import org.apache.tools.ant.types.Path; import org.apache.tools.ant.taskdefs.*; +import org.apache.tools.ant.util.JavaEnvUtils; + import java.io.*; import java.util.List; import java.util.Iterator; @@ -355,14 +357,14 @@ public class Ajc2 extends Javac { // If oldBuildCompiler is null try to resolve it if (oldBuildCompiler == null) { - String javaVersion = Project.getJavaVersion(); - if (javaVersion.equals(Project.JAVA_1_0)) { + String javaVersion = JavaEnvUtils.getJavaVersion(); + if (javaVersion.equals(JavaEnvUtils.JAVA_1_0)) { // Cannot happen - } else if (javaVersion.equals(Project.JAVA_1_1)) { + } else if (javaVersion.equals(JavaEnvUtils.JAVA_1_1)) { oldBuildCompiler = "classic"; - } else if (javaVersion.equals(Project.JAVA_1_2)) { + } else if (javaVersion.equals(JavaEnvUtils.JAVA_1_2)) { oldBuildCompiler = "classic"; - } else if (javaVersion.equals(Project.JAVA_1_3)) { + } else if (javaVersion.equals(JavaEnvUtils.JAVA_1_3)) { oldBuildCompiler = "modern"; } } -- 2.39.5