From: aclement Date: Tue, 6 Jan 2009 22:01:15 +0000 (+0000) Subject: classpath modification helper for tests X-Git-Tag: pre268419~249 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5f5ef2f3dc732ca0fc22e9bb9adebc7f18f5c99;p=aspectj.git classpath modification helper for tests --- 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);