@Override
public void run() {
try {
ScriptExecutor executor = new ScriptExecutor();
CommandLine cmd = new CommandLine(phPexeItem.getExecutable());
cmd.addArgument("testexecutable");
Bundle bundle = Platform.getBundle(PEXUIPlugin.PLUGIN_ID);
URL entry = bundle.getEntry("Resources/launcher");
File file = new File(FileLocator.resolve(entry).toURI());
if (file != null) {
executor.setWorkingDirectory(file);
}
executor.addResponseListener(listener);
executor.execute(cmd);
} catch (Exception e) {
Logger.logException(e);
}
}