From 855b913e7c3bf4b662beb1f97ac4980270330042 Mon Sep 17 00:00:00 2001 From: mattinger Date: Fri, 7 Jul 2006 14:45:50 +0000 Subject: Fixing assert stuff, and the For task git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@8 32d7a393-a5a9-423c-abd3-5d954feb1f2f --- src/java/net/sf/antcontrib/logic/ForTask.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/java/net') 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); -- cgit v1.2.3