Lots of people use Ant (http://ant.apache.org/) to build java projects. For
the projects I work on, the Ant buld.xml is the official document on how the
project is built. We have developers using IntelliJ and Eclipse. We don't use
the IDE's build functions, although we still have to setup the classpath
correctly so that syntax highlighting works, and we have to set the output path
to match the location where ant outputs the files so that we can use the
debugger. I'm sure lots of other companies have a similar setup.
Needless to say, the IDEA Ant integration is very important, just like the VCS
integration. Overall, the Ant integration works well for us, adn I don't have
any real pain points. There are a couple enhancements/fixes I would like,
though, so I thought I would search the Jira database to see what was there.
Well, I was really surprised there was a huge number ( > 200) of unresolved
requests. I had to take a break before I finished wading through all of them.
There were quite a few good ideas, and also alot of unresolved bugs which were
hard for me to see if they were fixed because they involved specific build.xml
But before I get into all the jira requests for Ant, I wanted to share a few
tips in case you didn't know about them.
1) Run Multiple Targets
You can select multiple targets by CTRL+click to select the targets and then
press Run. Note: if you misclick, and have to unselect a wrong target, you
need to clear the selection and start over, because IDEA will reverse the
order of the targets which probably isn't what you wanted.
2) Meta Targets.
After selecting multiple targets with CTRL+click, you can right-click and
select Create Meta Target. You can give it a name, and then it will show up
in the Ant Tool window as a virtual 'meta' target. This meta target gets
saved with your IDEA settings. Note: if you remove the build.xml file from
the Ant Tool window, the meta targets are lost.
3) Execute Targets Before/After
You can select a target, right-click and select 'Execute On'-> ' Before
Compilation" or "After Compilation" or "Before Run/Debug". The "Before Run/
Debug" let's you select specific run/debug configurations that you want the
ant target to be executed before.
Find Requests: http://www.intellij.net/forums/thread.jspa?threadID=197579
JSP Requests: http://www.intellij.net/forums/thread.jsp?forum=22&thread=190614
Inspection UI Requests: http://www.intellij.net/forums/thread.jsp?forum=22&thread=193582