You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Hayes, Peter" <Pe...@fmr.com> on 2001/05/03 21:21:36 UTC
-projecthelp
Hey,
Is there anyway to suppress the Subtargets when doing ant -projecthelp. We
use a lot of intermediate subtargets that make the help less than useful
when it scrolls off the screen.
Thanks.
Re: -projecthelp
Posted by Diane Holt <ho...@yahoo.com>.
--- "Hayes, Peter" <Pe...@fmr.com> wrote:
> Is there anyway to suppress the Subtargets when doing ant -projecthelp.
Doesn't look to be (see lines 585-586 in Main.java) -- but if you wanted
to add that, you could change it :) ...
> We use a lot of intermediate subtargets that make the help less than
> useful when it scrolls off the screen.
Or, write a little shell script to run when you want to display only the
main targets:
ant -projecthelp | \
awk '/^Main targets:/,/^Subtargets:/' | \
grep -v "^Subtargets:"
(Writing a DOS script for it is left as an exercise for the reader :)
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/