KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > actions > rar > UnDeployRarActionDelegate


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

7
8 import org.eclipse.core.resources.IFolder;
9
10 import com.bull.eclipse.jonas.JonasLauncherPlugin;
11 import com.bull.eclipse.jonas.actions.JonasFolderAbstractActionDelegate;
12
13 public class UnDeployRarActionDelegate extends JonasFolderAbstractActionDelegate {
14
15     public boolean doActionOn(IFolder fold) throws Exception JavaDoc {
16         String JavaDoc rarFile = fold.getFullPath().lastSegment() + ".rar";
17         JonasLauncherPlugin.log("rarFile = " + rarFile);
18         String JavaDoc[] options = {"-r", rarFile};
19         JonasLauncherPlugin.getDefault().getJonasBootstrap().admin(options);
20         return false;
21     }
22
23 }
24
25
Popular Tags