1 19 20 package com.sslexplorer.webforwards; 21 22 import java.io.File ; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 27 import com.sslexplorer.extensions.ExtensionInstaller; 28 import com.sslexplorer.extensions.ExtensionInstaller.ExtensionInstallOp; 29 30 35 public class WebForwardsInstall implements ExtensionInstallOp { 36 37 final static Log log = LogFactory.getLog(WebForwardsInstall.class); 38 39 42 public void doOp(ExtensionInstaller install) throws Exception { 43 File oldTagLib = new File ("webapp" + File.separator + "WEB-INF" + File.separator + "webforwards.tld"); 44 if(oldTagLib.exists()) { 45 log.info("Deleting old tag lib " + oldTagLib.getAbsolutePath()); 46 oldTagLib.delete(); 47 } 48 } 49 50 53 public String getPhase() { 54 return ExtensionInstaller.ON_ACTIVATE; 55 } 56 57 } 58 | Popular Tags |