From 2d04b60e65247c2ab865549610e2a81d3293b73c Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 1 Mar 2004 15:55:41 +0000 Subject: [PATCH] Georges fix to AjcTask for failing testcases. --- taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java index 10f7c42dc..c98abeed5 100644 --- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java +++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java @@ -249,7 +249,7 @@ public class AjcTask extends MatchingTask { static final String[] SOURCE_INPUTS = new String [] { "1.3", "1.4" }; static final String[] COMPLIANCE_INPUTS = new String [] - { "1.3", "1.4" }; + { "-1.3", "-1.4" }; private static final ICommandEditor COMMAND_EDITOR; @@ -1604,9 +1604,9 @@ public class AjcTask extends MatchingTask { while (in.hasNext()) { flag = in.next(); if ("-1.3".equals(flag)) { - setCompliance("1.3"); + setCompliance(flag); } else if ("-1.4".equals(flag)) { - setCompliance("1.4"); + setCompliance(flag); // } else if ("-1.5".equals(flag)) { // setCompliance("1.5"); } else if ("-argfile".equals(flag)) { @@ -1615,6 +1615,8 @@ public class AjcTask extends MatchingTask { setAspectpath(new Path(project, in.next())); } else if ("-classpath".equals(flag)) { setClasspath(new Path(project, in.next())); + } else if ("-extdirs".equals(flag)) { + setExtdirs(new Path(project, in.next())); } else if ("-Xcopyinjars".equals(flag)) { setCopyInjars(true); // ignored - will be flagged by setter } else if ("-g".equals(flag)) { -- 2.39.5