Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 11595 invoked from network); 13 Mar 2004 10:05:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Mar 2004 10:05:09 -0000 Received: (qmail 35010 invoked by uid 500); 13 Mar 2004 10:04:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34981 invoked by uid 500); 13 Mar 2004 10:04:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 34964 invoked from network); 13 Mar 2004 10:04:34 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.184) by daedalus.apache.org with SMTP; 13 Mar 2004 10:04:34 -0000 Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1B260d-0001bD-00 for user@ant.apache.org; Sat, 13 Mar 2004 11:04:47 +0100 Received: from [217.228.250.222] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1B260d-0007Hn-00 for user@ant.apache.org; Sat, 13 Mar 2004 11:04:47 +0100 Message-ID: <4052DC5A.5070603@cyberspaceroad.com> Date: Sat, 13 Mar 2004 11:03:06 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031021 X-Accept-Language: de MIME-Version: 1.0 To: user@ant.apache.org Subject: Re: show list of available tasks References: <20040309212450.67625.qmail@web40901.mail.yahoo.com> In-Reply-To: <20040309212450.67625.qmail@web40901.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > --- Bill Rich wrote: >>I think -p -v will yield a list of Major Tasks >>(those tasks with a description) and Other >>Tasks (those without a description). There is another issue - perhaps an enhancement :) - to do with this subject: ant -p only picks up the description attribute on the target. When I was documenting my build file, like the good developer I am, my descriptions were always a little bit too verbose for one line, and my editor keeps wanting to wrap them, which is of course not XML. So I tried this: Sets up the appserver properties and classpath and have more than one line bla bla bla and weird things happened. Ant -p missed it, and thought it must be a private target. But ant didn't miss it entirely, it spat out the description text at a random place in the output: Buildfile: build.xml Sets up the appserver properties and classpath Main targets: all Clean build and dist, then compile and deploy war assemble-ear package all required Jars into EAR clean delete old build and dist directories compile Compile Java sources del-deploy del deployed app from server del-deploy-tomcat-5 Delete tomcat-5 works deploy dir & context.xml deploy-ear deploys an EAR file to appserver deploy-war deploy app to server (or lib if no appserver) deploy-web deploy app to server (or lib if no appserver) deploy-web-tomcat-5 places context.xml in conf/Catalina/localhost/ ejb-jar package class files into Jars init-common Sets up the appserver properties and classpath jar jars up whatever it finds in build javadoc Create Javadoc API documentation war Create war file Default target: deploy Bug, enhancement or other? Adam -- ant 1.6.0 + java 1.4.2 on Linux 2.4.20 Debian --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org