--9--10
parent
62a311f9f3
commit
ef4700563c
|
@ -187,7 +187,7 @@ public class EngIneController extends BaseController {
|
||||||
@PostMapping("/testData")
|
@PostMapping("/testData")
|
||||||
public Result measurement(@RequestBody EngineVersion ruleEdition) {
|
public Result measurement(@RequestBody EngineVersion ruleEdition) {
|
||||||
OSSFileDownload.streamingDownload(ruleEdition.getName());
|
OSSFileDownload.streamingDownload(ruleEdition.getName());
|
||||||
JavaClass.compile(ruleEdition.getName());
|
JavaClass.compPile(ruleEdition.getName());
|
||||||
log.error("错误原因:{}" + ruleEdition);
|
log.error("错误原因:{}" + ruleEdition);
|
||||||
//测试
|
//测试
|
||||||
RuleTest.test(ruleEdition);
|
RuleTest.test(ruleEdition);
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class EngineVersionController extends BaseController {
|
||||||
|
|
||||||
OSSFileDownload.streamingDownload(engineVersion.getName());
|
OSSFileDownload.streamingDownload(engineVersion.getName());
|
||||||
|
|
||||||
JavaClass.compile(engineVersion.getName());
|
JavaClass.compPile(engineVersion.getName());
|
||||||
|
|
||||||
engineVersion.setId(null);
|
engineVersion.setId(null);
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import javax.tools.ToolProvider;
|
||||||
|
|
||||||
@Log4j2
|
@Log4j2
|
||||||
public class JavaClass {
|
public class JavaClass {
|
||||||
public static Result<Object> compile(String fileName) {
|
public static Result<Object> compPile(String fileName) {
|
||||||
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
||||||
String[] strings = {"-classpath", "/home/lib", "-verbose", "-d", "/home/lib", "/home/" + fileName + ".java"};
|
String[] strings = {"-classpath", "/home/lib", "-verbose", "-d", "/home/lib", "/home/" + fileName + ".java"};
|
||||||
int result = compiler.run(null, null, null, strings);
|
int result = compiler.run(null, null, null, strings);
|
||||||
|
|
Loading…
Reference in New Issue