多線這是我的代碼:寫在斯卡拉
bufferedWriter.write(Play.current.configuration.getString("play.compile.c.command").get.replace("{objectname}", registerdJobDetails.executableNm.mkString.split('.')(0)).replace("{executablename}", getExecutableFolderName(jobId) + registerdJobDetails.executableNm))
bufferedWriter.newLine()
bufferedWriter.write(Play.current.configuration.getString("play.runable.c.command").get.replace("{objectname}", registerdJobDetails.executableNm.mkString.split('.')(0)))
只有第一行獲取寫入,但其他線路是沒有得到寫入。
我收到錯誤的
java.util.NoSuchElementException:None.get
但play.runable.c.command在我的配置文件中有 –
play.runable.c.command =「./{executablename}」 是這個命令的問題 –