I use this (not written by me BTW - it was donated by somebody on this
list),

(add-to-list 'compilation-error-regexp-alist
             '("^\\s-*\\[[^]]*\\]\\s-*\\(.+\\):\\([0-9]+\\):" 1 2))

Kevin Jones
Developmentor
www.develop.com

> -----Original Message-----
> From: Ralph Jocham [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 23:42
> To: [EMAIL PROTECTED]
> Subject: Ant with JDE
>
>
> Hello,
> I am using Ant (from the Apache project) to build my
> code. Since Ant produces unknown error text I tried
> to add the regexp to the
> 'compilation-error-regexp-alist'
> variable.
>
> I added the following lines to my .emacs:
> ;;
> ------------------------------------------------------------------
> ---------
> ;;  Add error handling for ANT error messaqes
> ;;
> ------------------------------------------------------------------
> ---------
> (add-hook 'compilation-mode-hook
>         (lambda ()
>           (add-to-list 'compilation-error-regexp-alist
>                        '("\\[[a-z]+\\] \\([^: \t]+\\):\\([0-9]+\\):" 1 2)
>                        )))
>
> But it does not work, ie. there is no error message
> but
> it doesn't do anything.
> I know that I can use ant with the -emacs flag for
> Emacs
> error messages, but I would like to have the default
> Ant error messages.
>
> Thanks in advance,
> Ralph

Reply via email to