diff options
author | wisberg <wisberg> | 2003-05-14 03:36:34 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-05-14 03:36:34 +0000 |
commit | 99f5c14fb0df142b1e25361a7ff3951a5a6d4d5d (patch) | |
tree | 61b3782c4dcd013c71f01c2607f989c322179b41 /taskdefs/testsrc | |
parent | fed9393f832e8bd8da2cea2a4e55c6c49a3c2b39 (diff) | |
download | aspectj-99f5c14fb0df142b1e25361a7ff3951a5a6d4d5d.tar.gz aspectj-99f5c14fb0df142b1e25361a7ff3951a5a6d4d5d.zip |
Fix for taskdef bug 37576
http://bugs.eclipse.org/bugs/show_bug.cgi?id=37576
Diffstat (limited to 'taskdefs/testsrc')
-rw-r--r-- | taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
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() { |