I'm using an ant-based SDK that has several levels of hierarchy (This happens to be the Liferay Portlet Plugins SDK, but that is not necessarily important to the question I'm asking). At an individual project level, I'm at the third layer.
SDK
build.xml
plugin-type-A
build.xml
plugin-type-B
build.xml
plugin-type-C
build.xml
project
build.xml
So say I'm working a the project level. The build file here has almost nothing in it, it just imports the parent, which imports the parent, etc. It is here to tie the project-level directory into the build system, and to create a place for you to have your own targets and do customization, but rarely are any needed. When I do a 'ant -p -v' in my project directory I get this:
< a bunch of messages about properties and classpath info etc... >
Main targets:
clean clean
clean-service clean generated service builder files
Other targets:
all
build-client
build-common-plugin.war
build-css
build-db
build-lang
build-lang-cmd
build-service
build-wsdd
build-wsdl
build-xsd
clean-portal-dependencies
compile
compile-java
compile-test
compile-test-cmd
compile-test-integration
compile-test-unit
deploy
direct-deploy
format-javadoc
format-source
format-wsdl
format-xsd
merge
merge-unzip
print-current-time
setup-eclipse
shrink-zip-cmd
test
test-class
test-cmd
test-integration
test-unit
war
Default target: deploy
But the IDE only shows the one target I happened to define in the project's ant file (in this case clean-service). I can run the default target, or my locally defined target, but none of the other parent targets are available in any contextual menus or the Ant Build window.
I've read the help and googled for this, but the only info I've found that comes close to addressing this has to do with filters in the Ant Build window. When I go there, I actually see three possible targets (clean-service, build-css, and war), and I can check the box to make them available, but I don't see anything that comes close to the entire list of targets provided by 'ant -p -v'
So. What do I do to get Idea to display (and make available in context menus) all targets available to an ant build file?