Skip to content
Snippets Groups Projects
Commit df55de18 authored by Wai Yi Leung's avatar Wai Yi Leung
Browse files

Rename and use string formatting

parent 4b8c95f6
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ class Ln(val root: Configurable) extends InProcessFunction with Configurable {
var relative: Boolean = true
override def freezeFieldValues(): Unit = {
jobOutputFile = new File(out.getParent + File.separator + "." + out.getName + "." + this.analysisName + ".out")
val outLog: String = ".%s.%s.out".format(out.getName, analysisName)
jobOutputFile = new File(out.getAbsoluteFile.getParentFile, outLog)
super.freezeFieldValues()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment