diff --git a/vip-portal/src/main/resources/vm/gwendia-standalone.vm b/vip-portal/src/main/resources/vm/gwendia-standalone.vm index ce289c99d..36c49bbfa 100644 --- a/vip-portal/src/main/resources/vm/gwendia-standalone.vm +++ b/vip-portal/src/main/resources/vm/gwendia-standalone.vm @@ -5,87 +5,99 @@ Directory where the results will be stored. -#foreach( $input in $tool.getInputs() ) - #set($type="string") - #if($input.getType().getCamelName()=="File") - #set($type="URI") - #end - #if($input.getType().getCamelName()=="Flag") - #if($input.getDefaultValue() && $input.getDefaultValue()!="") - - #else - + #foreach( $input in $tool.getInputs() ) + #set($type="string") + #if($input.getType().getCamelName()=="File") + #set($type="URI") + #end + #if($input.getType().getCamelName()=="Flag") + #if($input.getDefaultValue() && $input.getDefaultValue()!="") + + #else + + #end + #else + #if($input.getDefaultValue() && $input.getDefaultValue()!="") + #if($input.getType().getCamelName()=="Number" && $input.isInteger()) + + #else + + #end + #else + #if($input.isOptional()==true) + + #else + + #end + #end + #end + #if($input.getDescription()) + $esc.xml($input.getDescription()) + #else + + #end + #end - #else - #if($input.getDefaultValue() && $input.getDefaultValue()!="") - #if($input.getType().getCamelName()=="Number" && $input.isInteger()) - - #else - - #end - #else - #if($input.isOptional()==true) - - #else - - #end + #foreach($output in $tool.getOutputFiles()) + #end - #end - #if($input.getDescription()) - $esc.xml($input.getDescription()) - #else - - #end - -#end -#foreach($output in $tool.getOutputFiles()) - -#end - /*----------Beginning of Beanshell------------*/ -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; + + /*----------Beginning of Beanshell------------*/ + import java.text.DateFormat; + import java.text.SimpleDateFormat; + import java.util.Date; -String result = dir.toString(); -if ( result.startsWith("/") || result.startsWith("lfn:") ) { - DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_HH:mm:ss"); - result = result + "/" + (dateFormat.format(System.currentTimeMillis())); -} -/*------------End of Beanshell------------*/ + String result = dir.toString(); + if ( result.startsWith("/") || result.startsWith("lfn:") ) { + DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_HH:mm:ss"); + result = result + "/" + (dateFormat.format(System.currentTimeMillis())); + } + /*------------End of Beanshell------------*/ -#foreach($input in $tool.getInputs()) - #if($input.getType().getCamelName()=="File" ) - - #else - - #end -#end -#foreach( $output in $tool.getOutputFiles() ) - -#end + #foreach($input in $tool.getInputs()) + #if($input.getType().getCamelName()=="File" ) + + #else + + #end + #end + #foreach( $output in $tool.getOutputFiles() ) + + #end - -#foreach($input in $tool.getInputs()) - #if(!$tool.getVipDotInputIds().contains($input.getId())) - - #end -#end -#if($tool.getVipDotInputIds() && !$tool.getVipDotInputIds().isEmpty()) - -#foreach($dotInput in $tool.getVipDotInputIds()) - -#end - -#end + #if($tools.getVipDotResultDirs) + + + #foreach($input in $tool.getInputs()) + #if($tool.getVipDotInputIds().contains($input.getId())) + + #end + #end + + #else + + #foreach($input in $tool.getInputs()) + #if(!$tool.getVipDotInputIds().contains($input.getId())) + + #end + #end + #end + #if($tool.getVipDotInputIds() && !$tool.getVipDotInputIds().isEmpty() && !$tools.getVipDotResultDirs) + + #foreach($dotInput in $tool.getVipDotInputIds()) + + #end + + #end @@ -94,11 +106,11 @@ if ( result.startsWith("/") || result.startsWith("lfn:") ) { -#foreach( $input in $tool.getInputs() ) - -#end -#foreach($output in $tool.getOutputFiles()) - -#end + #foreach( $input in $tool.getInputs() ) + + #end + #foreach($output in $tool.getOutputFiles()) + + #end