feat():测试
parent
0afe9411f9
commit
c4019ee777
|
@ -77,7 +77,7 @@ public class SourceCodeCompiler {
|
|||
public static void javaCompilerFile(String filePath){
|
||||
try {
|
||||
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
||||
int results = compiler.run(null, null, null, "/home/"+filePath);
|
||||
int results = compiler.run(null, null, null, filePath);
|
||||
System.out.println((results == 0)?"编译成功":"编译失败");
|
||||
}catch (Exception e){
|
||||
log.error(e);
|
||||
|
|
Loading…
Reference in New Issue