Is there any way to have a proper tab completion for Ant under windows (cmd.exe) ?
I could write up the default target to list all the other targets, but that’s just no the same as a proper tab completion you get on linux for instance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
BASH has a customizable completion mechanism in the builtin
completecommand. By scripting the complete command, you could do command line completion on almost anything you can think of. The ant target completion is done via a Perl shell script calledcomplete-ant-cmd.plwhich is put in the system wide bashrc file in Cygwin.CMD.exe does not have this mechanism and it cannot be expanded beyond what is already built into it.
As others have mentioned, you can try the
ant -porant --projecthelpcommand that will list all targets and their description. Try thisbuild.xmlfile:The output will be: