IntelliJ IDEA (http://www.intellij.com/idea) has Ant integration, although again quite as tight as you would like. It still requires you to set up your project classpath from within the IDE rather than from you Ant script. There have been a number of IDEA users asking for this though (it's request #2838 in their bug tracker), so it may come about eventually. There's a plugin available which will generate a basic Ant file for you, based on your project settings, but mainly what you get get from IDEA is very nice editing of your Ant script: code completion within your script file - even down to the level of it being aware of property names that have been referenced via a <property file="..."/> entry - in place error highlighting and a few simple refactorings (although they're nowhere near as rich as the refactorings it provides for Java code). It also lets you assign hotkeys to targets from a script file and set up targets to automatically run before/after compiling or running the program.
By the way, I'm not affiliated with IntelliJ at all - just a happy user of their product. Cheers, Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED] / digital steps / (W) +44 (0)1483 469 480 (M) +44 (0)7816 678 457 http://www.digitalsteps.com/ --Disclaimer-- This e-mail and any attachments may be confidential and/or legally privileged. If you have received this email and you are not a named addressee, please inform the sender at Digital Steps Ltd by phone on +44 (0)1483 469 480 or by reply email and then delete the email from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this email. Although Digital Steps Ltd routinely screens for viruses, addressees should check this email and any attachments for viruses. Digital Steps Ltd makes no representation or warranty as to the absence of viruses in this email or any attachments. ----- Original Message ----- From: "Steve Slatcher" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 2:31 PM Subject: Re: Ant-Editor Integration > You can execute Ant targets from NetBeans. NetBeans is however > particulalry annoying in that the editor marks as errors attempts to use > classes that it does not know about, i.e. classes not "on its classpath", > or "mounted" to use NetBean-speak. > > Even as I write this, I am evaluating JEdit.. Whilst it is not as annoying > as NetBeans, in so far as it does not nag it it cannot find a class, it > obviously cannot help with code completion on methods it knows nothing > about. I was unaware of AntFarm - I'll take a look, thanks. > > Maybe I am being too fussy, but it would be really nice to get code > completion, and to be warned about classes not on the path when they are > missing from a specified javac command, and not to be warned if they are > not missing. That is what I was expecting from Ant-integration. > Presumably editors/IDEs also need to know this class information if they > are to run programs in a debugger. > > Matt Moran wrote: > > I use jEdit (www.jedit.org) with the "AntFarm" plugin. When I want to > > compile, I don't even bother with the "Compile Current Buffer" > > command, because that would require me to set up my classpath within > > the editor, etc. Instead, I just invoke the "AntFarm->Run current > > target" command, which does the compile. That way javac is only ever > > invoked from within ant, and I always know exactly what classpath it > > is using. > > > > I used to use JDEE, and you can do pretty much the same thing in that > > environment. In my opinion, setting up the buffer compile features > > in JDEE is a waste of time. Just set it up to use Ant, and do all of > > your compilation that way. > > > > I've never used NetBeans, but I bet you can do the same thing. > > > > Hope this helps. > > > > -Matt Moran > > > > ----- Original Message ----- > > From: "Steve Slatcher" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, December 18, 2002 5:41 AM > > Subject: Ant-Editor Integration > > > > > >> Hi all > >> > >> I have been using Ant for a while now and have recently been looking > >> at a few editors and IDEs for Java development. I am perfectly > >> happy to build my Ant files in an ordinary text editor, and execute > >> Ant target from the command line. > >> > >> What I really would like however is a Java source editor (it doesn't > >> have to be a full IDE) that recognises classpaths I have set up in > >> my build.xml (presumably linked to a javac command), rather than > >> requiring me to maintain a project and/or classpath independently > >> for the editor. I may be wrong, but the IDEs I have looked at so > >> far (mainly NetBeans - Eclipse and JDEE to a lesser extent) do not > >> seem to be capable of this. If anyone can point me towards such an > >> editor I would be very grateful. > >> > >> If you point me to NetBeans I would be even more grateful if you > >> could tell me how do do it. The only way I found was to > >> independently mount my classes dir and jar files on the "filesystem". > >> > >> Many thanks > >> > >> Steve Slatcher > >> > >> > >> -- > >> To unsubscribe, e-mail: <mailto:ant-user- > >> [EMAIL PROTECTED]> For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>