The ant pane lists ant targets in the format
[project name].
[ant target]. This basically renders quick find unusable for ant files that have project names that are complex or have spaces in them.
Our company source code has a master build file and multiple build files. The master build file as well as all the child build files have the name attribute set in the project tag. So it's something like
build.xml
------------------
<project id="MainBuild" name="My System" default="usage" basedir="..">
<import file="childbuild.xml"/>
</project>
childbuild.xml
---------------
<project id="BaseBuild" name="MySystem child tasks" default="usage" basedir="..">
<target name="sometarget"/>
</project>
The problem is that sometarget would be listed in the ant build pane as My System child build tasks.sometarget. To quickly find the target I can't type in *sometarget. I have to type in * * *.som<-- starts matching now... Our build files have nearly a 100 targets so I don't want to scroll through the targets.
There are a number of solutions for this issue:
- Display ant targets in a hierarchy (similar to packages view) and allow quick find to work on the target names only
- Make quick find more intelligent so that it can handle the case above
Because of this issue, I'm currently not using the ant integration in IDEA.