summaryrefslogtreecommitdiffstats
path: root/src/java/net/sf/antcontrib
diff options
context:
space:
mode:
authormattinger <[email protected]>2006-07-07 14:45:50 +0000
committermattinger <[email protected]>2006-07-07 14:45:50 +0000
commit855b913e7c3bf4b662beb1f97ac4980270330042 (patch)
tree13a61f284c559225f331a66c93a01102bd80bd0b /src/java/net/sf/antcontrib
parente6cb208a20d77d388855ae517ec224cdc7480ae1 (diff)
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
Diffstat (limited to 'src/java/net/sf/antcontrib')
-rw-r--r--src/java/net/sf/antcontrib/logic/ForTask.java9
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);