修改编译文件路径

master
Qin Dong Ming 2024-09-06 21:11:43 +08:00
parent a79e144c32
commit 28bf94c2c0
1 changed files with 2 additions and 2 deletions

View File

@ -24,14 +24,14 @@ public class RuleTest {
static Map<String, BasicEngine<DataValue>> engineMap = new ConcurrentHashMap<>();
//外部类文件路径
public static final String engineWorkSourcePath = "/home/lib";
public static final String engineWorkSourcePath = "/home/";
public static final String className = "com.muyu.abstracts.generate.";
public static void test(EngineVersion engineVersion) {
try {
//外部类文件路径
String externalClassFilePath =
engineWorkSourcePath + "/home/com/muyu/abstracts/" + engineVersion.getName() + ".class";
engineWorkSourcePath + "/com/muyu/abstracts/" + engineVersion.getName() + ".class";
Path classFilePath = Paths.get(externalClassFilePath);
//获取外部类所在的目录
String externalClassDir = externalClassFilePath.substring(0, externalClassFilePath.lastIndexOf('/'));