Aye, thanks Troy, jde-ant-args is my friend.

-----Original Message-----
From: Troy Daniels [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 03, 2005 11:46 AM
To: Rancier, Jeff; jde@sunsite.dk
Subject: Re: Jumping to errors using Ant


At 11:32 AM 5/3/2005, Rancier, Jeff wrote:

>After taking an error when using jde-ant-build, instead of jumping to the
>first error, the build.xml file loads in the top buffer, with the point on
>the last line of the javac task and the *compilation* buffer points to the
>build.xml file itself as containing the error.
>
>I'm assuming since the build.xml line hightlighted with
>font-lock-warning-face in the *compilation* buffer, that's why it's popping
>up the file to the task that failed.  Is there a configuration option I'm
>missing?  I'm using:

Are you invoking ant as "ant -emacs <other options>"?  Ant adds things to 
the output that confuses emacs, and the -emacs option turns those off.

Troy

>GNU Emacs 21.3.1 (i386-mingw-nt5.0.2195) of 2004-03-10 on NYAUMO
>JDE 2.3.5
>
>M-x next-error gives me 'No more errors'
>Attempting to go to the previous error (with a key bound to [next-error
-1])
>I get 'Moved past first error'.  Is there an Ant custiomization I'm missing
>to correctly fontify the *compilation* buffer?
>
>Here's the output in the *compilation* buffer:
>
>cd c:/jrancier/src/
>c:/jrancier/pkg/apache-ant-1.6.3/bin/ant.bat
>-Dant.home=c:/jrancier/pkg/apache-ant-1.6.3 -buildfile
>'c:/jrancier/src/build.xml' compile
>Buildfile: c:\jrancier\src\build.xml
>
>prepare:
>
>compile:
>     [javac] Compiling 1 source file to C:\jrancier\src\classes
>     [javac] C:\jrancier\src\DBBuilder.java:1260: variable nameList might
not
>have been initialized
>     [javac]             nameList[ i ] = new JMenuItem( lafNames[ i ] );
>     [javac]             ^
>     [javac] 1 error
>
>BUILD FAILED
>C:\jrancier\build.xml:104: Compile failed; see the compiler error output
for
>details.
>
>Total time: 2 seconds
>
>Compilation finished at Tue May 03 11:18:36
>
>Thanks,
>Jeff

----------------------------------------
Troy Daniels
[EMAIL PROTECTED]
781-273-3388 x218

Reply via email to