[This is a repost as my ISP's mailhost as elected to be
listed at ORBS again, sorry if anybody receives this twice]

Laurent Mirguet <[EMAIL PROTECTED]> wrote:

> I am using ant for building my project.

Many of the Ant developers use JDE themselves, so there is hope 8-).

> When I get errors in the *compilation* buffer, I can't click on the
> error to go to the line where I made a mistake.

There are two solutions to this.

(1) If you are using Ant 1.2 it supports the command line switch
-emacs to suppress the [javac] tags.

(2) Use the following elisp snippet in your .emacs

(require 'compile)
 (setq compilation-error-regexp-alist
       (append (list 
                ;; works for jikes
                
'("^\\s-*\\[[^]]*\\]\\s-*\\(.+\\):\\([0-9]+\\):\\([0-9]+\\):[0-9]+:[0-9]+:" 1 2 3)
                ;; works for javac 
                ;; thanks to Barrie Treloar <[EMAIL PROTECTED]>
                '("^\\s-*\\[[^]]*\\]\\s-*\\(.+\\):\\([0-9]+\\):" 1 2))
       compilation-error-regexp-alist))

There is an entry in Ant's FAQ for this, see 
<http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/194/question_id/735>.

BTW, better integration with JDE is one of the TODOs for Ant so if
anybody with more lisp knowledge than I have wants to jump in ...

Cheers
        
        Stefan

Reply via email to