Subversion Repositories DevTools

Rev

Rev 4285 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4280 dpurdie 1
package com.erggroup.buildtool.abt;
2
 
3
 
4
import java.util.Vector;
4285 dpurdie 5
 
4280 dpurdie 6
import org.apache.tools.ant.Task;
7
 
8
 
9
public class ABTData extends Task
10
{
11
  // static fields
12
  // public
13
  // protected
14
  // private
15
 
16
  // fields
17
  // public
18
  // protected
19
  // private
20
  // System
21
 
22
  public static Vector<Machine> machineCollection = new Vector<Machine>();
23
  public static Vector<Owner> ownerCollection = new Vector<Owner>();
24
 
25
 
26
  /**
27
   * Init all data when the task is invoked
28
   * 
29
   */
30
  public void init()
31
  {
32
      machineCollection.removeAllElements();
33
      ownerCollection.removeAllElements();
34
  }
35
 
36
  public void execute()
37
  {
38
  }
39
 
40
  //---------------------------------------------------------------------------
41
  //    Extend the <ABTData> task with new elements
42
  //
43
  //        <machine name="auperasbm07" machtype="solits10_x86" machclass="Solaris" buildfilter="" />
44
  //        <owner email="buildadm@vixtechnology.com"/>
45
  //
46
  public Machine createMachine()
47
  {
48
    Machine machine = new Machine();
49
    machineCollection.add(machine);
50
    return machine;
51
  }
52
 
53
  public Owner createOwner()
54
  {
55
    Owner owner = new Owner();
56
    ownerCollection.add(owner);
57
    return owner;
58
  }
59
}