From f5f5ef2f3dc732ca0fc22e9bb9adebc7f18f5c99 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 6 Jan 2009 22:01:15 +0000 Subject: classpath modification helper for tests --- .../systemtest/incremental/tools/AjdeInteractionTestbed.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java b/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java index 970e497bc..f4e4bdc30 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java @@ -71,6 +71,12 @@ public class AjdeInteractionTestbed extends TestCase { ((MultiProjTestCompilerConfiguration) compiler.getCompilerConfiguration()).addProjectSourceFileChanged(changedFile); } + public void addClasspathEntry(String projectName, File classpathEntry) { + AjCompiler compiler = CompilerFactory.getCompilerForProjectWithDir(sandboxDir + File.separator + projectName); + MultiProjTestCompilerConfiguration config = ((MultiProjTestCompilerConfiguration) compiler.getCompilerConfiguration()); + config.setClasspath(config.getClasspath() + File.pathSeparator + classpathEntry.toString()); + } + public void addClasspathEntryChanged(String projectName, String changedDir) { AjCompiler compiler = CompilerFactory.getCompilerForProjectWithDir(sandboxDir + File.separator + projectName); ((MultiProjTestCompilerConfiguration) compiler.getCompilerConfiguration()).addClasspathEntryChanged(changedDir); -- cgit v1.2.3