Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 67751 invoked from network); 26 Apr 2004 19:53:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Apr 2004 19:53:03 -0000 Received: (qmail 23340 invoked by uid 500); 26 Apr 2004 19:52:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 23291 invoked by uid 500); 26 Apr 2004 19:52:42 -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 23270 invoked from network); 26 Apr 2004 19:52:42 -0000 Received: from unknown (HELO ErikHatcher.local) (24.51.109.181) by daedalus.apache.org with SMTP; 26 Apr 2004 19:52:42 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by ErikHatcher.local (Postfix) with ESMTP id 6C2AA6B202F for ; Mon, 26 Apr 2004 15:52:46 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <8A5F80A8-97B0-11D8-9BFE-000393A564E6@ehatchersolutions.com> References: <890650F148A56F43B91C43B3710922D2144206@cnfqe109.cnf.prod.cnf.com> <8A5F80A8-97B0-11D8-9BFE-000393A564E6@ehatchersolutions.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <48D62584-97BB-11D8-9BFE-000393A564E6@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Ant MailLogger, subject line Date: Mon, 26 Apr 2004 15:52:44 -0400 To: "Ant Users List" X-Mailer: Apple Mail (2.613) 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 Uh.... wow, I really misread your e-mail. No, as far as I know there is no way to get the currently executing target using MailLogger. You could write your own logger and get the currently executing target (it is part of BuildEvent), but I don't think you could get to the one requested on the command-line. Erik On Apr 26, 2004, at 2:35 PM, Erik Hatcher wrote: > If you define the subject property within your build file and use > ${whatever} in the value of the subject, you can then run with the > command-line switch -Dwhatever=foo to get "foo" in the subject line. > > Erik > > On Apr 26, 2004, at 1:51 PM, Sullivan, Sean C - MWT wrote: > >> >> My build.xml file contains a target named "foo" >> >> I am launching Ant with the following command: >> >> ant -DMailLogger.properties.file=MailLogger.properties >> -logger org.apache.tools.ant.listener.MailLogger >> -f build.xml foo >> >> I want the string "foo" to appear in the mail logger's subject line >> >> Is there an Ant property that I can use to get the build target name? >> >> Cheers, >> >> -Sean >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org