aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-10-01 15:09:15 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-10-01 15:09:15 -0700
commit8a6608f4d5d1a2aa8aa49a0a38da66a54d53c917 (patch)
treeeb9e96e988a63e1aa48896b279adae9bc41f9084 /testing
parent9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53 (diff)
downloadaspectj-8a6608f4d5d1a2aa8aa49a0a38da66a54d53c917.tar.gz
aspectj-8a6608f4d5d1a2aa8aa49a0a38da66a54d53c917.zip
386341
Diffstat (limited to 'testing')
-rw-r--r--testing/newsrc/org/aspectj/testing/RunSpec.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/testing/newsrc/org/aspectj/testing/RunSpec.java b/testing/newsrc/org/aspectj/testing/RunSpec.java
index 7a5842548..8a2fea8b3 100644
--- a/testing/newsrc/org/aspectj/testing/RunSpec.java
+++ b/testing/newsrc/org/aspectj/testing/RunSpec.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Adrian Colyer,
+ * Adrian Colyer, Abraham Nevado (lucierna)
* ******************************************************************/
package org.aspectj.testing;
@@ -39,6 +39,7 @@ public class RunSpec implements ITestStep {
private String ltwFile;
private String xlintFile;
private String vmargs;
+ private String usefullltw;
public RunSpec() {
}
@@ -50,11 +51,12 @@ public class RunSpec implements ITestStep {
String[] args = buildArgs();
// System.err.println("? execute() inTestCase='" + inTestCase + "', ltwFile=" + ltwFile);
boolean useLtw = copyLtwFile(inTestCase.getSandboxDirectory());
+
copyXlintFile(inTestCase.getSandboxDirectory());
try {
setSystemProperty("test.base.dir", inTestCase.getSandboxDirectory().getAbsolutePath());
- AjcTestCase.RunResult rr = inTestCase.run(getClassToRun(), args, getClasspath(), useLtw);
+ AjcTestCase.RunResult rr = inTestCase.run(getClassToRun(), args, vmargs, getClasspath(), useLtw, "true".equalsIgnoreCase(usefullltw));
if (stdErrSpec != null) {
stdErrSpec.matchAgainst(rr.getStdErr(), orderedStderr);
@@ -211,6 +213,16 @@ public class RunSpec implements ITestStep {
return vmargs;
}
+
+ public String getUsefullltw() {
+ return usefullltw;
+ }
+
+ public void setUsefullltw(String usefullltw) {
+ this.usefullltw = usefullltw;
+ }
+
+
private void copyXlintFile(File sandboxDirectory) {
if (xlintFile != null) {
File from = new File(baseDir, xlintFile);