*/
protected boolean doCommand(IMessageHandler handler, boolean repeat) {
try {
- //buildManager.setMessageHandler(handler);
+ if (handler instanceof IMessageHolder) {
+ Dump.saveMessageHolder((IMessageHolder) handler);
+ }
+ // buildManager.setMessageHandler(handler);
CountingMessageHandler counter = new CountingMessageHandler(handler);
if (counter.hasErrors()) {
return false;
import org.aspectj.bridge.Version;
import org.aspectj.util.FileUtil;
import org.aspectj.util.LangUtil;
-import org.aspectj.weaver.Dump;
/**
* Programmatic and command-line interface to AspectJ compiler.
* @param holder the MessageHandler sink for messages.
*/
public void run(String[] args, IMessageHolder holder) {
- Dump.saveMessageHolder(holder);
if (LangUtil.isEmpty(args)) {
args = new String[] { "-?" };
} else if (controller.running()) {