Home »
Code Examples »
Groovy Code Examples
Groovy - Including a groovy script in another groovy Code Example
The code for Including a groovy script in another groovy
evaluate(new File("../tools/Tools.groovy"))
/*
Put that at the top of your script. That will bring in the contents of a groovy file
(just replace the file name between the double quotes with your groovy script).
I do this with a class surprisingly called "Tools.groovy".
*/
Code by IncludeHelp,
on August 9, 2022 15:11
Reference:
stackoverflow