From: aclement Date: Mon, 1 Mar 2004 15:55:41 +0000 (+0000) Subject: Georges fix to AjcTask for failing testcases. X-Git-Tag: v_preCompileLoopAlteration~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2d04b60e65247c2ab865549610e2a81d3293b73c;p=aspectj.git Georges fix to AjcTask for failing testcases. --- 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)) {