Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.38 KB | None | 0 0
  1. boolean useCompilationCache = policies == null ||
  2.                 !Arrays.asList(policies).contains(ScriptExecutionPolicy.DO_NOT_USE_COMPILE_CACHE);
  3.         Script script = null;
  4.         Object result;
  5.         try {
  6.             script = useCompilationCache ? getPool().borrowObject(text) : createScript(text);
  7.             script.setBinding(binding);
  8.             result = script.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement