Merge branch 'dev' of http://git.trustie.net/Hjqreturn/training_project into dev
This commit is contained in:
commit
9c7398c878
|
@ -639,7 +639,7 @@ public class GameService {
|
||||||
String tpiScript = tpmScript.replace("WORKSPACE", TpUtils.buildTpiRepoPath(tpiWorkspace, tpiRepoName));
|
String tpiScript = tpmScript.replace("WORKSPACE", TpUtils.buildTpiRepoPath(tpiWorkspace, tpiRepoName));
|
||||||
try {
|
try {
|
||||||
// 写脚本到工作空间目录下
|
// 写脚本到工作空间目录下
|
||||||
FileUtils.deleteQuietly(new File(tpiWorkspace + File.separator + "evaluate.sh"));
|
// FileUtils.deleteQuietly(new File(tpiWorkspace + File.separator + "evaluate.sh"));
|
||||||
FileUtils.writeStringToFile(new File(tpiWorkspace + File.separator + "evaluate.sh"), tpiScript, "UTF-8");
|
FileUtils.writeStringToFile(new File(tpiWorkspace + File.separator + "evaluate.sh"), tpiScript, "UTF-8");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("生成TPI评测脚本失败!{}", e);
|
logger.error("生成TPI评测脚本失败!{}", e);
|
||||||
|
|
Loading…
Reference in New Issue