]> source.dussan.org Git - aspectj.git/commitdiff
Georges fix to AjcTask for failing testcases.
authoraclement <aclement>
Mon, 1 Mar 2004 15:55:41 +0000 (15:55 +0000)
committeraclement <aclement>
Mon, 1 Mar 2004 15:55:41 +0000 (15:55 +0000)
taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java

index 10f7c42dc4867bc60f9bfe4a305bb13b7da68c41..c98abeed5b7718b54b3f9dccefa6c72ccb0a8421 100644 (file)
@@ -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)) {