ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Tehler <>
Subject Re: [PATCH] Dynamic target
Date Thu, 02 Nov 2000 12:20:27 GMT
Stefan Bodewig wrote:
> >>>>> "JT" == Jonas Tehler <> writes:
>  JT> If a specified target doesn't exist, but a target named "dynamic"
>  JT> exists, The non-existing target name is placed in the
>  JT> "" property and the target is changed to "dynamic".
> Hmm, why not use
> ant dynamic
> instead? This patch is way to implicit IMHO.

If you do it that way you have to know if the target already exists or
not. I want to use this to be able to define default behaviour for
building packages. But I also want to be able to specify a specific
target for some of the packages, without changing how they are built
from the command line.

I guess you could check if the target already exists in the dynamic
target and then call that target from there, but I don't think that is
as good.

/ Jonas

View raw message