KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > actions > war > HotDeployActionDelegate


1 package com.bull.eclipse.jonas.actions.war;
2
3 /*
4  * (c) Copyright Bull SA 2003.
5  * All Rights Reserved.
6  */

7  
8 import com.bull.eclipse.jonas.JonasLauncherPlugin;
9 import com.bull.eclipse.jonas.JonasProject;
10 import com.bull.eclipse.jonas.actions.JonasActionException;
11 import com.bull.eclipse.jonas.actions.JonasProjectAbstractActionDelegate;
12
13 public class HotDeployActionDelegate extends JonasProjectAbstractActionDelegate {
14     
15     public boolean doActionOn(JonasProject prj) throws Exception JavaDoc {
16         if(!JonasLauncherPlugin.getDefault().getBaseDir().trim().equals("")) {
17             prj.hotDeploy();
18         } else {
19             throw new JonasActionException(JonasLauncherPlugin.getResourceString("msg.action.jonasbase.failed"));
20         }
21         return true;
22     }
23
24
25 }
26
27
Popular Tags