From: aclement Date: Mon, 23 Aug 2004 15:12:29 +0000 (+0000) Subject: Changed from using deprecated APIs. X-Git-Tag: V1_2_1~89 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5856b320e6c55a82d737df725ea1373dc2a25d94;p=aspectj.git Changed from using deprecated APIs. --- 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"; } }