> username="myuser" group="mygroup"
> <include name="*.swf"/>
> <tarfileset dir="$"
> username="myuser" group="mygroup" mode="664"
> As you can see, all but one of the attributes of the tarfileset nested
> elements are boilerplate, repeated at every instance, but there is no
> way to default these. I thought <macrodef> might provide some help
> here, but it doesn't, since macrodef only provides bits of runnable
> tasks, not nested sets of attributes. A less flexible alternative,
> still preferable to the above, would be to provide default values for
> the nested elements in the outer <tar> task. <tar> doesn't, at
> present, provide this functionality. That might be doable through
> macrodef, but does macrodef allow variable numbers of nested elements?
Others have commented on the feasibility of using macrodef/presetdef,
both of which do not really apply to your problem, but I'm going to ask
for a dummy question ;-) Why not simply do something like this: