aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs/src
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-23 15:12:29 +0000
committeraclement <aclement>2004-08-23 15:12:29 +0000
commit5856b320e6c55a82d737df725ea1373dc2a25d94 (patch)
tree59bf8a2aab93166b6a180cd71ebffb97d501c816 /taskdefs/src
parentb45bd023c06494a9efbedb14c215ecadf609aae6 (diff)
downloadaspectj-5856b320e6c55a82d737df725ea1373dc2a25d94.tar.gz
aspectj-5856b320e6c55a82d737df725ea1373dc2a25d94.zip
Changed from using deprecated APIs.
Diffstat (limited to 'taskdefs/src')
-rw-r--r--taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc2.java12
1 files 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";
}
}