|
|
@@ -36,6 +36,8 @@ static def createRunnable(String appHome, SupplierInitService supplierService, R
|
|
|
if (!redisService.hexists(keysService.getRedisKey(RedisKeys.KEY_BUSINESSSCRIPT, supplierCode), code)) {
|
|
|
//读取脚本信息
|
|
|
try (GroovyClassLoader groovyCl = new GroovyClassLoader(supplierService.getClass().getClassLoader(), ERPUtils.buildERPGroovyConfig())) {
|
|
|
+ //添加公共commons目录
|
|
|
+ groovyCl.addClasspath(directoryName + "commons")
|
|
|
groovyCl.addClasspath(x.getParent().toString())
|
|
|
|
|
|
String fileStr = ReadUTF8File.execute(x.toPath(), false, logger)
|