ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Ant MailLogger, subject line
Date Mon, 26 Apr 2004 19:52:44 GMT
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


Mime
View raw message