Rev 6914 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.erggroup.buildtool.abt;import java.util.ArrayList;import org.apache.tools.ant.Task;public class ABTData extends Task{public ArrayList <Machine> machineCollection = new ArrayList <Machine>();public ArrayList <Owner> ownerCollection = new ArrayList <Owner>();/*** Init all data when the task is invoked**/@Overridepublic void init(){machineCollection.clear();ownerCollection.clear();}/*** This method is empty*/@Overridepublic void execute(){// This method is empty by design}//---------------------------------------------------------------------------// Extend the <abtdata> task with new elements//// <machine name="auperasbm07" machtype="solaris10_x86" machclass="Solaris" buildfilter="" />// <owner email="buildadm@vixtechnology.com"/>//public Machine createMachine(){Machine machine = new Machine();machineCollection.add(machine);return machine;}public Owner createOwner(){Owner owner = new Owner();ownerCollection.add(owner);return owner;}}