1 package com.bull.eclipse.jonas.actions.rar; 2 3 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 DeployDSActionDelegate extends JonasProjectAbstractActionDelegate { 13 14 public boolean doActionOn(JonasProject prj) throws Exception { 15 String ds = JonasLauncherPlugin.getDefault().getPreferenceStore().getString("datasource").replaceAll("/",""); 16 String rarFile = "JOPE_" + ds + ".rar"; 17 JonasLauncherPlugin.log("rarFile = " + rarFile); 18 String [] options = {"-a", rarFile}; 19 JonasLauncherPlugin.getDefault().getJonasBootstrap().admin(options); 20 return false; 21 } 22 23 } 24 25 | Popular Tags |