ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny <evgeny.zis...@gmail.com>
Subject Re: Initializing Task variables at taskdef time?
Date Tue, 19 Aug 2008 14:08:50 GMT
You can use something like a "presetdef" to set default values for your
task, and then use the presetdef when calling the task instead of the
original one. Is this what you want?

On Tue, Aug 19, 2008 at 3:56 PM, cowwoc <cowwoc@bbs.darktech.org> wrote:

>
> Hi,
>
> This seems like such an obvious use-case but from what I read in this forum
> there doesn't seem to be a way to do it... is there a way for me to pass
> parameters to my custom task at taskdef (initialization time)?
>
> One obvious use-case is grabbing the classpath used in the taskdef during
> the task execution time, but this could pretty much apply to any variable I
> want to initialize *once* and reuse anytime the task is invoked. Is this
> possible in Ant 1.7?
>
> Thank you,
> Gili
> --
> View this message in context:
> http://www.nabble.com/Initializing-Task-variables-at-taskdef-time--tp19048295p19048295.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message