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]>