172173174175176177178179180181182
throw e; } catch (Exception e) { throw new BuildException(e, getLocation()); } finally { if (acl != null) { acl.resetThreadContextLoader(); } } } }
188189190191192193194195196197198
} catch (RuntimeException re) { reportException(re, count, generatorTask); } finally { if (loader != null) { loader.resetThreadContextLoader(); loader.cleanup(); } } }
158159160161162163164165166167168
} catch (Exception e) { throw new BuildException("RuleBaseTask failed: " + e.getMessage(), e); } finally { if (loader != null) { loader.resetThreadContextLoader(); } } } private void createWithKnowledgeBuilder(AntClassLoader loader)
192193194195196197198199200201202
throw e; } catch (Throwable e) { throw new BuildException(e); } finally { if (loader != null) { loader.resetThreadContextLoader(); loader.cleanup(); loader = null; } if (sysProperties != null) { sysProperties.restoreSystem();
268269270271272273274275276277278
throw e; } catch (Throwable e) { throw new BuildException(e); } finally { if (loader != null) { loader.resetThreadContextLoader(); loader.cleanup(); } if (command.getSystemProperties() != null) { command.getSystemProperties().restoreSystem(); }
260261262263264265266267268269270
177178179180181182183184185186187
850851852853854855856857858859860
} finally{ if (sysProperties != null) { sysProperties.restoreSystem(); } if (cl != null) { cl.resetThreadContextLoader(); } } } /**