feat():测试
parent
6391f07cb6
commit
a5b7eccec0
|
@ -25,7 +25,7 @@ public class OSSFileCompile{
|
|||
public static Result<Object> compile(String source){
|
||||
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
||||
|
||||
String[] strings = {"-classpath","/home/lib/target/classes/com/muyu","-verbose","-d", "/home/lib/target/classes/com/muyu",source };
|
||||
String[] strings = {"-classpath","/home/lib/","-verbose","-d", "/home/lib/",source };
|
||||
// 执行编译任务
|
||||
int result = compiler.run(null, null, null, strings);
|
||||
// 检查编译结果
|
||||
|
|
Loading…
Reference in New Issue