From 3260f7423917987b480d0da1ebbbe9fbafe90202 Mon Sep 17 00:00:00 2001 From: Peter van 't Hof <p.j.van_t_hof@lumc.nl> Date: Fri, 6 Feb 2015 17:11:07 +0100 Subject: [PATCH] Moved freeze function --- .../sasc/biopet/core/BiopetCommandLineFunctionTrait.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala index 4a5b25f7a..9382f779a 100644 --- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala @@ -51,6 +51,9 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab override def freezeFieldValues() { checkExecutable afterGraph + + super.freezeFieldValues() + if (jobOutputFile == null) jobOutputFile = new File(firstOutput.getParent + "/." + firstOutput.getName + "." + configName + ".out") if (threads == 0) threads = getThreads(defaultThreads) @@ -62,8 +65,6 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab } if (vmem.isDefined) jobResourceRequests :+= "h_vmem=" + vmem.get jobName = configName + ":" + (if (firstOutput != null) firstOutput.getName else jobOutputFile) - - super.freezeFieldValues() } protected def checkExecutable { -- GitLab