1 4 package com.tc.installer.action; 5 6 import com.tc.installer.util.WarFileFilter; 7 import com.zerog.ia.api.pub.CustomCodeAction; 8 import com.zerog.ia.api.pub.InstallerProxy; 9 import com.zerog.ia.api.pub.UninstallerProxy; 10 11 import java.io.File ; 12 import java.io.FileFilter ; 13 14 public class ListWarApplications extends CustomCodeAction { 15 16 public void install(InstallerProxy ip) { 17 String warDirPath = (String ) ip.getVariable("WAR_FOLDER"); 18 FileFilter filter = new WarFileFilter(); 19 File [] warList = new File (warDirPath).listFiles(filter); 20 for (int i = 0; i < warList.length; i++) { 21 ip.setVariable("USR_WAR_" + i, ip.substitute(warList[i].getName())); 22 } 23 } 24 25 public void uninstall(UninstallerProxy up) { 26 } 28 29 public String getInstallStatusMessage() { 30 return "Validating WAR Files"; 31 } 32 33 36 public String getUninstallStatusMessage() { 37 return ""; 38 } 39 } 40 | Popular Tags |