feat():测试

yuan
yuan 2024-09-04 20:50:44 +08:00
parent e965382c3b
commit 7db0831ada
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ public class OSSFileCompile{
public static Result<Object> compile(String source){
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);
String[] strings = {"-classpath","home/","-verbose","-d", "home/", source };
String[] strings = {"-classpath","home/","-verbose","-d", "home/" + source };
// 执行编译任务
int result = compiler.run(null, null, null, strings);
// 检查编译结果