Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Ajc support in hudson

The format isn't really well spec'd.  Compiler messages are from JDT
and so are in the JDT style.  Weaver messages come from different
infrastructure - that does funnel all formatting through
MessageUtil.renderMessage() but it is just:

public static String renderMessage(IMessage message, boolean elide) {

        ISourceLocation loc = message.getSourceLocation();
        String locString = (null == loc ? "" : " at " + loc);

        String result = message.getKind() + locString + " " +
message.getMessage();

        Throwable thrown = message.getThrown();
        if (thrown != null) {
            result += " -- " + LangUtil.renderExceptionShort(thrown);
            result += "\n" + LangUtil.renderException(thrown, elide);
        }

        if (message.getExtraSourceLocations().isEmpty()) {
            return result;
        }
        else {
            return addExtraSourceLocations(message, result);
        }
}

so your basic regex would really just be something that starts with
'warning' or 'error' for weaver messages.

Andy

2009/5/14 Wim Deblauwe <wim.deblauwe@xxxxxxxxx>:
> Hi,
>
> I am using hudson and I don't get the compiler warnings in it because ajc is
> not supported. It seems not much is needed to have it supported. I just need
> to know the formal syntax of the warnings/errors that are printed out and
> create regular expressions for it. Is this described somewhere ?
>
> regards,
>
> Wim
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top