Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 44069 invoked from network); 5 Feb 2003 05:47:35 -0000 Received: from h000.c000.snv.cp.net (HELO c000.snv.cp.net) (209.228.32.64) by daedalus.apache.org with SMTP; 5 Feb 2003 05:47:35 -0000 Received: (cpmta 3371 invoked from network); 4 Feb 2003 21:47:35 -0800 Received: from 68.169.37.64 (HELO ehatchersolutions.com) by smtp.hatcher.net (209.228.32.64) with SMTP; 4 Feb 2003 21:47:35 -0800 X-Sent: 5 Feb 2003 05:47:35 GMT Date: Wed, 5 Feb 2003 00:47:47 -0500 Subject: Re: Can you get name of target to be run? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Erik Hatcher To: "Ant Users List" Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <5ABC08F0-38CD-11D7-B7F9-000393A564E6@ehatchersolutions.com> X-Mailer: Apple Mail (2.551) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N No. And this has been a hotly debated topic, in fact. Keep in mind that Ant can be run this way also: ant target1 target2 target3 That probably doesn't factor into why its a debatable topic, but does add some food for thought on it. You could do something like this though: ant -Dtarget=target1 And in the default target do an to ${target} Erik On Tuesday, February 4, 2003, at 06:07 PM, David Clements wrote: > Can you get the name of the target that is going to be run upon entry > into the build file? I want to set a > property based on what target is going to be run. > > Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: ant-user-help@jakarta.apache.org > >