diff options
author | acolyer <acolyer> | 2005-09-22 11:36:39 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-22 11:36:39 +0000 |
commit | 2447704c6056d26c5f819654acd187a8d53a2dc3 (patch) | |
tree | 57e27ae5be6a026e33d25ed26fb00d805628aa50 /testing | |
parent | edd1fb9692ef587a59d069f2994158a1ada6a72e (diff) | |
download | aspectj-2447704c6056d26c5f819654acd187a8d53a2dc3.tar.gz aspectj-2447704c6056d26c5f819654acd187a8d53a2dc3.zip |
attempt to create the right classpath for running org.aspectj.weaver.tools tests on the build machine...
Diffstat (limited to 'testing')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/RunSpec.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/testing/newsrc/org/aspectj/testing/RunSpec.java b/testing/newsrc/org/aspectj/testing/RunSpec.java index 980f22240..f418ac34c 100644 --- a/testing/newsrc/org/aspectj/testing/RunSpec.java +++ b/testing/newsrc/org/aspectj/testing/RunSpec.java @@ -11,6 +11,7 @@ * ******************************************************************/ package org.aspectj.testing; +import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; @@ -29,6 +30,7 @@ public class RunSpec implements ITestStep { private String classToRun; private String baseDir; private String options; + private String cpath; private AjcTest myTest; private OutputSpec stdErrSpec; private OutputSpec stdOutSpec; @@ -44,7 +46,7 @@ public class RunSpec implements ITestStep { System.err.println("Warning, message spec for run command is currently ignored (org.aspectj.testing.RunSpec)"); } String[] args = buildArgs(); - AjcTestCase.RunResult rr = inTestCase.run(getClassToRun(),args,null); + AjcTestCase.RunResult rr = inTestCase.run(getClassToRun(),args,getClasspath()); if (stdErrSpec != null) { stdErrSpec.matchAgainst(rr.getStdErr()); } @@ -73,6 +75,14 @@ public class RunSpec implements ITestStep { this.options = options; } + public String getClasspath() { + return this.cpath.replace('/', File.separatorChar); + } + + public void setClasspath(String cpath) { + this.cpath = cpath; + } + public void addStdErrSpec(OutputSpec spec) { this.stdErrSpec = spec; } |