1 26 27 package org.objectweb.jonas.ant.cluster; 28 29 import java.util.Iterator ; 30 31 35 public class WebLevel extends ClusterTasks { 36 37 40 private static final String INFO = "[WebLevel] "; 41 42 45 public WebLevel() { 46 super(); 47 } 48 49 53 public void addConfiguredServicesCluster(ServicesCluster servicesCluster) { 54 servicesCluster.setRootTask(getRootTask()); 55 log(INFO + "ServicesCluster added"); 56 servicesCluster.setLogInfo("ServicesCluster"); 57 addClusterTask(servicesCluster); 58 } 59 60 64 public void addConfiguredWebContainerCluster(WebContainerCluster webContainerCluster) { 65 webContainerCluster.setRootTask(getRootTask()); 66 log(INFO + "WebContainerCluster added"); 67 webContainerCluster.setLogInfo("WebContainerCluster"); 68 addClusterTask(webContainerCluster); 69 } 70 71 75 public void addConfiguredLibCluster(LibCluster libCluster) { 76 libCluster.setRootTask(getRootTask()); 77 log(INFO + "LibCluster added"); 78 libCluster.setLogInfo("LibCluster"); 79 addClusterTask(libCluster); 80 } 81 82 85 public void generatesTasks() { 86 87 for (Iterator it = this.getClusterTasks().iterator(); it.hasNext();) { 88 ClusterTasks ct = (ClusterTasks) it.next(); 89 90 log(INFO + "tasks generation for " + ct.getLogInfo()); 91 92 ct.setArch(getArch()); 93 ct.setDestDirPrefix(getDestDirPrefix()); 94 ct.setDestDirSuffixIndFirst(getDestDirSuffixIndFirst()); 95 ct.setDestDirSuffixIndLast(getDestDirSuffixIndLast()); 96 ct.generatesTasks(); 97 addTasks(ct); 98 } 99 } 100 101 } | Popular Tags |