1 26 27 package org.objectweb.jonas.ant.cluster; 28 29 import java.io.File ; 30 import org.objectweb.jonas.ant.jonasbase.Services; 31 32 36 public class ServicesCluster extends ClusterTasks { 37 38 41 private static final String INFO = "[ServicesCluster] "; 42 46 private String partialList = null; 47 48 52 private String fullList = null; 53 54 57 public ServicesCluster() { 58 super(); 59 } 60 61 65 public void setPartialList(String partialList) { 66 this.partialList = partialList; 67 68 } 69 70 74 public void setFullList(String fullList) { 75 this.fullList = fullList; 76 77 } 78 79 82 public void generatesTasks() { 83 84 for (int i = getDestDirSuffixIndFirst(); i <= getDestDirSuffixIndLast(); i++) { 85 86 String destDir = getDestDir(getDestDirPrefix(), i); 87 88 log(INFO + "tasks generation for " + destDir); 89 90 Services services = new Services(); 92 93 if (this.getArch().compareTo(ARCH_BOTH_WEB_EJB) == 0) { 94 services.setNames(fullList); 95 } else { 96 services.setNames(partialList); 97 } 98 services.setDestDir(new File (destDir)); 99 100 addTask(services); 101 } 102 } 103 } | Popular Tags |