Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 65433 invoked from network); 3 Jun 2005 18:53:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 18:53:35 -0000 Received: (qmail 90296 invoked by uid 500); 3 Jun 2005 18:53:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90263 invoked by uid 500); 3 Jun 2005 18:53:26 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 90250 invoked by uid 99); 3 Jun 2005 18:53:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.mdli.com (HELO mail.mdli.com) (208.200.221.8) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 11:53:22 -0700 Received: from exch-sl02.mdli.com (exch-sl02.mdli.com [145.36.243.10]) by mail.mdli.com (Postfix) with ESMTP id AA6C9B5E0A for ; Fri, 3 Jun 2005 11:52:47 -0700 (PDT) Received: from [145.36.245.225] (145.36.245.225 [145.36.245.225]) by exch-sl02.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id LY8FLXFK; Fri, 3 Jun 2005 11:52:47 -0700 Message-ID: <42A0A6FA.5010506@mdl.com> Date: Fri, 03 Jun 2005 11:52:42 -0700 X-Sybari-Trust: b9cf1f11 310387b0 6272e42a 0000013d From: "Alexey N. Solofnenko" User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050602) MIME-Version: 1.0 To: Ant Users List Subject: Re: built-in property for the invoking target? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You can write a script to run ant: ant -Dcommand="%*" %* - Alexey. Eric Wood wrote: > My build.xml sends email that states whether or not the build succeeded > or failed. I would like to include which target was invoked from the > command line, but I haven't found a built-in property for this. I was > using the ant-contrib task and setting it to the target name > for each target, but this doesn't seem very ant-like. Is there a better > way? > > > > > Eric Wood > ewood@llbean.com > 207.552.2306 > > -- ------------------------------------------------------------------------ / Alexey N. Solofnenko home: http://trelony.cjb.net/ / --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org