]> source.dussan.org Git - aspectj.git/commitdiff
classpath modification helper for tests
authoraclement <aclement>
Tue, 6 Jan 2009 22:01:15 +0000 (22:01 +0000)
committeraclement <aclement>
Tue, 6 Jan 2009 22:01:15 +0000 (22:01 +0000)
tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java

index 970e497bc8d6a63836281383025a8d0fa97905e2..f4e4bdc30639f1f98db93c4b8ba6f0103aa67db6 100644 (file)
@@ -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);