import junit.framework.*;
import org.aspectj.ajde.*;
+import org.aspectj.asm.AsmManager;
+
import java.io.*;
/**
}
public void testSequence() {
+ AsmManager.dumpModelPostBuild=true; // or you wont get a .ajsym file
+ try {
assertTrue("initialization", ideManager != null);
assertTrue("compile of non-existing build config success", !testerBuildListener.getBuildSucceeded());
// XXX should fail? empty configs fail b/c no sources specified
file.delete();
} else {
assertTrue("expected .ajsym" + file, false);
- }
+ }
+ } finally {
+ AsmManager.dumpModelPostBuild=false;
+ }
}
protected void setUp() throws Exception {
private static boolean creatingModel = false;
+ public static boolean dumpModelPostBuild = false; // Dumping the model is expensive
public static boolean attemptIncrementalModelRepairs = false;
// for debugging ...
public void fireModelUpdated() {
notifyListeners();
- if (hierarchy.getConfigFile() != null) {
+ if (dumpModelPostBuild && hierarchy.getConfigFile() != null) {
writeStructureModel(hierarchy.getConfigFile());
}
}