From 99f5c14fb0df142b1e25361a7ff3951a5a6d4d5d Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 14 May 2003 03:36:34 +0000 Subject: Fix for taskdef bug 37576 http://bugs.eclipse.org/bugs/show_bug.cgi?id=37576 --- .../org/aspectj/tools/ant/taskdefs/AjcTaskTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'taskdefs/testsrc') diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java index 9e6025c95..d343797cd 100644 --- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java +++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java @@ -134,6 +134,24 @@ public class AjcTaskTest extends TestCase { runTest(task, NO_EXCEPTION, IMessageHolderChecker.ONE_ERROR_ONE_ABORT); } + public void testClasspath() { + AjcTask task = getTask(NOFILE); + String[] cmd = task.setupCommand(true); + String classpath = null; + String bootclasspath = null; + for (int i = 0; i < cmd.length; i++) { + if ("-classpath".equals(cmd[i])) { + classpath = cmd[i+1]; + } else if ("-bootclasspath".equals(cmd[i])) { + bootclasspath = cmd[i+1]; + } + } + assertTrue("not expecting bootclasspath", + null == bootclasspath); + assertTrue("expecting aspectj in classpath", + (-1 != classpath.indexOf("aspectjrt.jar"))); + } + // ---------------------------------------- sourcefile // XXX need to figure out how to specify files directly programmatically // public void testDefaultFile() { -- cgit v1.2.3