1 26 27 package org.objectweb.jonas.ant.cluster; 28 29 import java.io.File ; 30 import org.objectweb.jonas.ant.jonasbase.Dbm; 31 32 36 public class DbmCluster extends ClusterTasks { 37 38 41 private static final String INFO = "[DbmCluster] "; 42 43 46 private String dataSources = null; 47 48 51 public DbmCluster() { 52 super(); 53 } 54 55 59 public void setdataSources(String dataSources) { 60 this.dataSources = dataSources; 61 } 62 63 66 public void generatesTasks() { 67 68 int portInd = 0; 69 70 for (int i = getDestDirSuffixIndFirst(); i <= getDestDirSuffixIndLast(); i++) { 71 72 String destDir = getDestDir(getDestDirPrefix(), i); 73 log(INFO + "tasks generation for " + destDir); 74 Dbm dbm = new Dbm(); 76 77 dbm.setdataSources(dataSources); 78 dbm.setDestDir(new File (destDir)); 79 80 addTask(dbm); 81 82 portInd++; 83 84 } 85 } 86 } | Popular Tags |