Search in sources :

Example 1 with MacroDef

use of org.apache.tools.ant.taskdefs.MacroDef in project JikesRVM by JikesRVM.

the class ForEachTask method execute.

public void execute() {
    validate();
    final MacroDef.Attribute attribute = new MacroDef.Attribute();
    attribute.setName(property);
    macroDef.addConfiguredAttribute(attribute);
    final String[] values = list.split(" ");
    for (String value : values) {
        final MacroInstance i = new MacroInstance();
        i.setProject(getProject());
        i.setOwningTarget(getOwningTarget());
        i.setMacroDef(macroDef);
        i.setDynamicAttribute(property, value);
        i.execute();
    }
}
Also used : MacroDef(org.apache.tools.ant.taskdefs.MacroDef) MacroInstance(org.apache.tools.ant.taskdefs.MacroInstance)

Example 2 with MacroDef

use of org.apache.tools.ant.taskdefs.MacroDef in project JikesRVM by JikesRVM.

the class ForEachTask method createSequential.

public MacroDef.NestedSequential createSequential() {
    macroDef = new MacroDef();
    macroDef.setProject(getProject());
    return macroDef.createSequential();
}
Also used : MacroDef(org.apache.tools.ant.taskdefs.MacroDef)

Example 3 with MacroDef

use of org.apache.tools.ant.taskdefs.MacroDef in project JikesRVM by JikesRVM.

the class IfTask method createSequential.

public MacroDef.NestedSequential createSequential() {
    macroDef = new MacroDef();
    macroDef.setProject(getProject());
    return macroDef.createSequential();
}
Also used : MacroDef(org.apache.tools.ant.taskdefs.MacroDef)

Aggregations

MacroDef (org.apache.tools.ant.taskdefs.MacroDef)3 MacroInstance (org.apache.tools.ant.taskdefs.MacroInstance)1