Stefan Bodewig wrote: > > >>>>> "JT" == Jonas Tehler <[EMAIL PROTECTED]> 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> "dynamic.target" property and the target is changed to "dynamic". > > Hmm, why not use > > ant dynamic -Ddynamic.target=whatever > > 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
