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 18:35:49 GMT
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


Mime
View raw message