aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-05-09 23:03:36 +0000
committerwisberg <wisberg>2003-05-09 23:03:36 +0000
commite1ceb70b99f1d6eb91ebdb177e24b4ba57ce8570 (patch)
treeabcc70b20bd6e8ecff667661a3a7a81ac61f67f8 /testing
parent96d6206ea3cc4d27a1766a1a61de3e580bcc004a (diff)
downloadaspectj-e1ceb70b99f1d6eb91ebdb177e24b4ba57ce8570.tar.gz
aspectj-e1ceb70b99f1d6eb91ebdb177e24b4ba57ce8570.zip
includeClassesDir
Diffstat (limited to 'testing')
-rw-r--r--testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java b/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
index 853a853dc..f659bfb82 100644
--- a/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
+++ b/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
@@ -262,9 +262,13 @@ public class CompilerRun implements IAjcRun {
// save classpath and aspectpath in sandbox for this and other clients
final boolean checkReadable = true; // hmm - third validation?
- File[] cp = new File[2 + classFiles.length];
+ int size = spec.includeClassesDir ? 3 : 2;
+ File[] cp = new File[size + classFiles.length];
System.arraycopy(classFiles, 0, cp, 0, classFiles.length);
int index = classFiles.length;
+ if (spec.includeClassesDir) {
+ cp[index++] = sandbox.classesDir;
+ }
cp[index++] = Globals.F_aspectjrt_jar;
cp[index++] = Globals.F_testingclient_jar;
sandbox.setClasspath(cp, checkReadable, this);
@@ -495,6 +499,7 @@ public class CompilerRun implements IAjcRun {
// use same command - see also IncCompiler.Spec.fresh
protected boolean reuseCompiler;
+ protected boolean includeClassesDir;
protected TestSetup testSetup;
@@ -512,6 +517,9 @@ public class CompilerRun implements IAjcRun {
compiler = DEFAULT_COMPILER;
}
+ public void setIncludeClassesDir(boolean include) {
+ this.includeClassesDir = include;
+ }
public void setReuseCompiler(boolean reuse) {
this.reuseCompiler = reuse;
}
@@ -989,9 +997,12 @@ public class CompilerRun implements IAjcRun {
if (!DEFAULT_COMPILER.equals(compiler)) {
out.printAttribute("compiler", compiler);
}
- if (!reuseCompiler) {
+ if (reuseCompiler) {
out.printAttribute("reuseCompiler", "true");
}
+ if (includeClassesDir) {
+ out.printAttribute("includeClassesDir", "true");
+ }
if (!LangUtil.isEmpty(argfiles)) {
out.printAttribute("argfiles", XMLWriter.flattenFiles(argfiles));
}