pallassgj / bpipe

Automatically exported from code.google.com/p/bpipe
0 stars 1 forks source link

setting lsf parameters in bpipe.config using another config file #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem
I am trying to set lsf parameters in bpipe.config using test.config file
1. When I write load 'test.config' in  bpipe.config file it throws following 
error

What is the expected output? What do you see instead?
I would expect it to load variable from my test.config file.
Error:
Error parsing 'bpipe.config' file. Cause: No signature of method: 
groovy.util.ConfigSlurper$_parse_closure5.load() is applicable for argument 
types: (java.lang.String) values: [caveman.config]
Possible solutions: find(), find(), find(groovy.lang.Closure), 
find(groovy.lang.Closure), any(), dump()

What version of the product are you using? On what operating system?
bpipe-0.9.8.5 on   x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by s...@sanger.ac.uk on 12 Nov 2014 at 4:48

Attachments:

GoogleCodeExporter commented 9 years ago
This is temporarily resolved with a workaround to load 'custom parameters' file 
using groovy file loader and accessing parameters as shown below:
//read config file
def config = new ConfigSlurper().parse(new File('test.prm').toURL())
props = config.toProperties()

MY_PARAMETER=props.MY_PARAMETER 

Original comment by s...@sanger.ac.uk on 14 Nov 2014 at 11:42