diff options
Diffstat (limited to 'src/java/net')
-rw-r--r-- | src/java/net/sf/antcontrib/logic/ForTask.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/java/net/sf/antcontrib/logic/ForTask.java b/src/java/net/sf/antcontrib/logic/ForTask.java index 516773b..59b8c09 100644 --- a/src/java/net/sf/antcontrib/logic/ForTask.java +++ b/src/java/net/sf/antcontrib/logic/ForTask.java @@ -226,9 +226,12 @@ public class ForTask extends Task { int taskCount = 0; // Create a macro attribute - MacroDef.Attribute attribute = new MacroDef.Attribute(); - attribute.setName(param); - macroDef.addConfiguredAttribute(attribute); + if (macroDef.getAttributes().isEmpty()) { + MacroDef.Attribute attribute = new MacroDef.Attribute(); + attribute.setName(param); + macroDef.addConfiguredAttribute(attribute); + } + // Take Care of the list attribute if (list != null) { StringTokenizer st = new StringTokenizer(list, delimiter); |