156157158159160161162163164165166
} } catch (ScriptEvalException e){ if (Logger.isDebugEnabled()) Logger.debug("Script installation failed: deleting"); updateCacheVersion(); dao.invalidate(updated); dao.revertToLastVersion(updated); throw e; } return status; }
243244245246247248249250251252253
ScriptCall uninstall = ScriptCall.uninstall(script); try { invoke(uninstall); return dao.delete(name); } catch (ScriptException e){ dao.invalidate(script); throw e; } } public static boolean forceDelete(String name) throws ScriptException {