aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-06 22:01:15 +0000
committeraclement <aclement>2009-01-06 22:01:15 +0000
commitf5f5ef2f3dc732ca0fc22e9bb9adebc7f18f5c99 (patch)
treef5cde993ad39693777b65efe9a7b7d54ebc31ec2
parent6a0d1a70dc38f0a84e779300285ef934d5d34f6e (diff)
downloadaspectj-f5f5ef2f3dc732ca0fc22e9bb9adebc7f18f5c99.tar.gz
aspectj-f5f5ef2f3dc732ca0fc22e9bb9adebc7f18f5c99.zip
classpath modification helper for tests
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java6
1 files changed, 6 insertions, 0 deletions
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);