master
zhang chengzhi 2024-09-04 19:18:16 +08:00
parent 63052ba57f
commit 42c281bf26
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ public class RuleEngineServiceImpl extends ServiceImpl<RuleEngineVersionMapper,
OutputStream second = null; // 程序的输出 null 用 system.out
OutputStream third = null; // 程序的错误输出 .,null 用 system.err
// 程序编译参数 注意 我们编译目录是我们的项目目录
String[] strings = {"-classpath",engineConfig.getSourcePath(),"-verbose","-d", engineConfig.getSourcePath(), engineConfig.getSourcePath() +"\\"+className+Suffix_JAVA};
String[] strings = {"-classpath",engineConfig.getSourcePath(),"-verbose","-d", engineConfig.getSourcePath(), engineConfig.getSourcePath() +"/"+className+Suffix_JAVA};
// 0 表示成功, 其他表示出现了错误
System.out.println(Arrays.toString(strings));
@ -139,7 +139,7 @@ public class RuleEngineServiceImpl extends ServiceImpl<RuleEngineVersionMapper,
Path classFilePath = Paths.get(externalClassFilePath);
//对class文件进行自定义类加载规则引擎
Map<String, Class<?>> stringClassMap = JavaBinaryClassLoader.loadClassesByLocation(engineConfig.getServerPack(), engineConfig.getClassPath());
// Map<String, Class<?>> stringClassMap = JavaBinaryClassLoader.loadClassesByLocation(engineConfig.getServerPack(), engineConfig.getClassPath());
}
static Map<String, BasicEngine<DataValue>> engineMap = new ConcurrentHashMap<>();