diff options
Diffstat (limited to 'taskdefs/testsrc/org/aspectj')
-rw-r--r-- | taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java index a92dc3ade..3ecf6416e 100644 --- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java +++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java @@ -67,9 +67,9 @@ public class AjcTaskTest extends TestCase { // add nothing } else if (input.endsWith(".lst")) { if (-1 != input.indexOf(",")) { - task.setArgfiles(input); + throw new IllegalArgumentException("lists not supported: " + input); } else { - task.setArgfile(new File(input)); + task.setArgfiles(new Path(task.getProject(), input)); } } else if ((input.endsWith(".java") || input.endsWith(".aj"))) { // not working @@ -123,7 +123,6 @@ public class AjcTaskTest extends TestCase { runTest(task, NO_EXCEPTION, IMessageHolderChecker.INFOS); } - public void testNoFile() { AjcTask task = getTask(NOFILE); runTest(task, NO_EXCEPTION, IMessageHolderChecker.ONE_ERROR); |