Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 91907 invoked from network); 25 Jul 2000 12:32:53 -0000 Received: from dfw-smtpout4.email.verio.net (129.250.36.44) by locus.apache.org with SMTP; 25 Jul 2000 12:32:53 -0000 Received: from [129.250.38.64] (helo=dfw-mmp4.email.verio.net) by dfw-smtpout4.email.verio.net with esmtp (Exim 3.12 #7) id 13H3tE-00045z-00 for ant-dev@jakarta.apache.org; Tue, 25 Jul 2000 12:32:52 +0000 Received: from [24.28.201.162] (helo=arm1) by dfw-mmp4.email.verio.net with smtp (Exim 3.15 #4) id 13H3tE-0003pt-00 for ant-dev@jakarta.apache.org; Tue, 25 Jul 2000 12:32:52 +0000 From: "Anthony Milano" To: Subject: RE: Ant and Emacs compilation Date: Tue, 25 Jul 2000 08:34:28 -0400 Message-ID: <000201bff634$acd78140$a2c91c18@arm1> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I am currently using approach one, I have to make a modification when I switch projects. > -----Original Message----- > From: Stefan Bodewig [mailto:bodewig@bost.de] > Sent: Tuesday, July 25, 2000 4:16 AM > To: ant-dev@jakarta.apache.org > Subject: Re: Ant and Emacs compilation > > > I use the following in my JDE setup in ~/.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 > '("^\\s-*\\[[^]]*\\]\\s-*\\(.+\\):\\([0-9]+\\):" 1 2)) > compilation-error-regexp-alist)) > > Both regexps work whether [javac] is present or not, this means the > first one solves the problem XEmacs has with jikes +E as well. > > The jikes version needs to be prepended to the list because the (4bsd > gnu) regexp seems to match (badly) in XEmacs' compile.el but doesn't > parse the message correctly. > > As for other editors - we probably need a way to not use DefaultLogger > and add a PlainLogger. While the second is possible, the first one is > not yet. > > On a side note. How are you invoking Ant from JDE? > > I'm currently switching between two approaches > > (1) an approach Peter Donald has posted to this list, which requires > me to modify an elisp variable to switch between projects and adds a > key sequence to jde-mode-map to invoke Ant. > > (2) write a shell script in each directory that changes the working > dir to my projects basedir, invokes ant with the arguments I might > have supplied and changes back the directory. Say "compile using make" > and set the compilation command to the name of my shell script. > > I'm not thrilled by each of these ways. > > Stefan >