// Global functions defined in external file
if (globalFunctionsFile != null)
{
try
{
globalFunctions.putAll(CompilerTools.extractAllDeclaredFunctions(new ExpressionCompiler(
IOUtils.getResourceAsString(globalFunctionsFile, getClass())).compile()));
}
catch (IOException e)
{
throw new InitialisationException(CoreMessages.failedToLoad(globalFunctionsFile), e, this);
}
}
// Global functions defined in configuration file (take precedence over functions in file)
globalFunctions.putAll(CompilerTools.extractAllDeclaredFunctions(new ExpressionCompiler(
globalFunctionsString).compile()));
}