KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > actions > ear > UnDeployEarActionDelegate


1 package com.bull.eclipse.jonas.actions.ear;
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.JonasProjectAbstractActionDelegate;
11
12 public class UnDeployEarActionDelegate extends JonasProjectAbstractActionDelegate {
13
14     public boolean doActionOn(JonasProject prj) throws Exception JavaDoc {
15         String JavaDoc earFile = prj.getProject().getName() + ".ear";
16         JonasLauncherPlugin.log("earFile = " + earFile);
17         String JavaDoc[] options = {"-r", earFile};
18         JonasLauncherPlugin.getDefault().getJonasBootstrap().admin(options);
19         return false;
20     }
21
22 }
23
24
Popular Tags