Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 10665 invoked from network); 22 Jul 2002 11:36:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Jul 2002 11:36:23 -0000 Received: (qmail 7167 invoked by uid 97); 22 Jul 2002 11:36:31 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 7128 invoked by uid 97); 22 Jul 2002 11:36:30 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 7116 invoked by uid 98); 22 Jul 2002 11:36:29 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <000401c23174$06720be0$d001a8c0@FrancisANDRE> From: "Francis ANDRE" To: "Ant Users List" References: <20020720030328.52766.qmail@web13405.mail.yahoo.com> Subject: Re: Reading target name Date: Mon, 22 Jul 2002 13:36:29 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Diane I am interested by your code. Thanks Francis ANDRE Responsable Industrialisation et Support www.e-xmlmedia.fr +33 1 45 36 41 33 ----- Original Message ----- From: "Diane Holt" To: "Ant Users List" Sent: Saturday, July 20, 2002 5:03 AM Subject: RE: Reading target name > --- Dominique Devienne wrote: > > You'll need to drop js.jar and bsf.jar in ${ant.home}/lib for the > > following to work. > [snip script to get target name] > > Or you can use my exceedingly naughty task, which gets the current > target's name and sets a property to that name. (It's naughty because you > can use the same property over and over again :) For example: > > > > > target = ${target} > > > > > target = ${target} > > > > > target = ${target} > > > $ ant > t1: > [echo] target = t1 > > t2: > [echo] target = t2 > > main: > [echo] target = main > > Actually, I just made it even naughtier by hard-coding in "target" as a > default name for the property if one's not specified :) > > If you want the source (and/or jar), just let me know. > > Diane > > ===== > (holtdl@yahoo.com) > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - Feel better, live better > http://health.yahoo.com > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: