The bar
and foo
targets (as well as the conditions on foo.uptodate
and bar.uptodate
) seems really similar to each other. I'd try to remove this duplication with a presetdef
or a macrodef
Reply for the edit:
Nice to see that the macrodef
works :-). A few other ideas:
-
<attribute name="basename" default="unknown" />
Are you sure that you need the default
attribute here? The macrodef
documentation says the following:
The attributes will be required attributes unless a default value has been set.
I'd create a list for
<srcfiles file="@{basename}.dtx" /> <srcfiles file="@{basename}.ins" />
Here is an example: Ant: using Filelist as Fileset in Uptodate? Ant: using Filelist as Fileset in Uptodate?
- After this I guess the three
uptodate
tag could be replaced with only one which uses a composite or a chained mapper but I'm not too familiar with these.
The bar
and foo
targets (as well as the conditions on foo.uptodate
and bar.uptodate
) seems really similar to each other. I'd try to remove this duplication with a presetdef
or a macrodef
Reply for the edit:
Nice to see that the macrodef
works :-). A few other ideas:
-
<attribute name="basename" default="unknown" />
Are you sure that you need the default
attribute here? The macrodef
documentation says the following:
The attributes will be required attributes unless a default value has been set.
I'd create a list for
<srcfiles file="@{basename}.dtx" /> <srcfiles file="@{basename}.ins" />
Here is an example: Ant: using Filelist as Fileset in Uptodate?
- After this I guess the three
uptodate
tag could be replaced with only one which uses a composite or a chained mapper but I'm not too familiar with these.
The bar
and foo
targets (as well as the conditions on foo.uptodate
and bar.uptodate
) seems really similar to each other. I'd try to remove this duplication with a presetdef
or a macrodef
Reply for the edit:
Nice to see that the macrodef
works :-). A few other ideas:
-
<attribute name="basename" default="unknown" />
Are you sure that you need the default
attribute here? The macrodef
documentation says the following:
The attributes will be required attributes unless a default value has been set.
I'd create a list for
<srcfiles file="@{basename}.dtx" /> <srcfiles file="@{basename}.ins" />
Here is an example: Ant: using Filelist as Fileset in Uptodate?
- After this I guess the three
uptodate
tag could be replaced with only one which uses a composite or a chained mapper but I'm not too familiar with these.
The bar
and foo
targets (as well as the conditions on foo.uptodate
and bar.uptodate
) seems really similar to each other. I'd try to remove this duplication with a presetdef
or a macrodef
Reply for the edit:
Nice to see that the macrodef
works :-). A few other ideas:
<attribute name="basename" default="unknown" />
Are you sure that you need the default
attribute here? The macrodef
documentation says the following:
The attributes will be required attributes unless a default value has been set.
I'd create a list for
<srcfiles file="@{basename}.dtx" /> <srcfiles file="@{basename}.ins" />
Here is an example: Ant: using Filelist as Fileset in Uptodate?
- After this I guess the three
uptodate
tag could be replaced with only one which uses a composite or a chained mapper but I'm not too familiar with these.
The bar
and foo
targets (as well as the conditions on foo.uptodate
and bar.uptodate
) seems really similar to each other. I'd try to remove this duplication with a presetdef
or a macrodef
Reply for the edit:
Nice to see that the macrodef
works :-). A few other ideas:
<attribute name="basename" default="unknown" />
Are you sure that you need the default
attribute here? The macrodef
documentation says the following:
The attributes will be required attributes unless a default value has been set.
I'd create a list for
<srcfiles file="@{basename}.dtx" /> <srcfiles file="@{basename}.ins" />
Here is an example: Ant: using Filelist as Fileset in Uptodate?
- After this I guess the three
uptodate
tag could be replaced with only one which uses a composite or a chained mapper but I'm not too familiar with these.