import org.aspectj.tools.ajc.AjcTestCase;
import org.aspectj.util.FileUtil;
-import org.aspectj.util.LangUtil;
-import org.aspectj.weaver.Utils;
-import org.aspectj.weaver.bcel.Utility;
/**
* @author Adrian Colyer
private String vmargs;
private String usefullltw;
+ @Override
public String toString() {
return "RunSpec: Running '"+classToRun+"' in directory '"+baseDir+"'. Classpath of '"+cpath+"'";
}
public RunSpec() {
}
+ @Override
public void execute(AjcTestCase inTestCase) {
if (!expected.isEmpty()) {
System.err.println("Warning, message spec for run command is currently ignored (org.aspectj.testing.RunSpec)");
}
String[] args = buildArgs();
- // System.err.println("? execute() inTestCase='" + inTestCase + "', ltwFile=" + ltwFile);
+// System.err.println("? execute() inTestCase='" + inTestCase + "', ltwFile=" + ltwFile);
boolean useLtw = copyLtwFile(inTestCase.getSandboxDirectory());
copyXlintFile(inTestCase.getSandboxDirectory());
}
}
+ @Override
public void addExpectedMessage(ExpectedMessageSpec message) {
expected.add(message);
}
+ @Override
public void setBaseDir(String dir) {
this.baseDir = dir;
}
+ @Override
public void setTest(AjcTest test) {
this.myTest = test;
}
+
+ public AjcTest getTest() {
+ return this.myTest;
+ }
public String getOptions() {
return options;
this.usefullltw = usefullltw;
}
-
private void copyXlintFile(File sandboxDirectory) {
if (xlintFile != null) {
File from = new File(baseDir, xlintFile);