1 package com.bull.eclipse.jonas.actions.war; 2 3 7 8 import org.eclipse.core.runtime.CoreException; 9 10 import com.bull.eclipse.jonas.JonasLauncherPlugin; 11 import com.bull.eclipse.jonas.JonasProject; 12 import com.bull.eclipse.jonas.actions.JonasProjectAbstractActionDelegate; 13 14 public class DeployWarActionDelegate extends JonasProjectAbstractActionDelegate { 15 16 public boolean doActionOn(JonasProject prj) throws Exception { 17 String warFile = prj.getWebContext() + ".war"; 18 deploy(warFile); 19 return false; 20 } 21 22 static public void deploy(String warName) throws CoreException { 23 JonasLauncherPlugin.log("warFile = " + warName); 24 String [] options = {"-a", warName}; 25 JonasLauncherPlugin.getDefault().getJonasBootstrap().admin(options); 26 } 27 28 } 29 30 | Popular Tags |