DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22020>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22020 addition to <target..> task ------- Additional Comments From [EMAIL PROTECTED] 2003-07-31 17:10 ------- I implement something of the sort currently It works like this: <target name="public"> <property name="invoked.public.target" value="true"/> </target> <target name="init"> <fail unless="invoked.public.target"> This target is not available to the general public. For a list of public targets use: ant targets </fail> ... rest of initialization ... </target> <target name="internal1" depends="init"/> <target name="internal2" depends="init"/> <target name="invokeMe" depends="public, init, internal, internal2"/> <target name="targets"> <echo> Public Targets for this ant file: --------------------------------------------------------------------------- invokeMe Does incredibly useful stuff --------------------------------------------------------------------------- </echo> </target> The key is to make every target depend on init and only available targets, the major drawback is you have to maintain your own target to handle project help type stuff. I would like to see this feature added as well, but I havn't taken the time to come up with a patch because I already have the workaround in place :). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]