Project

General

Profile

Include a property from lavoisier-config.properties in the entry of the shell connector

Added by FORESTIER Flavien almost 11 years ago

Hi,

I use the shell connector to call a python script.
I currently give an hard coded argument to the shell executable like this

<parameter name="arguments">
<entry>--input-dir=path/to/my/files</entry>
</parameter>

What I'd like to do is to get the value of the argument from the lavoisiier-config.properties file
I tried to do somethiong like this:

<parameter name="arguments">
<entry eval="concat('--input-dir=',property('vo.support.tools.monitor.ce.input.dir'))"/>
</parameter>

But I get the exception content not allowed in prologue

How can I do this?

By advance, thanks,
Flavien Forestier


Replies (2)

RE: Include a property from lavoisier-config.properties in the entry of the shell connector - Added by Reynaud Sylvain almost 11 years ago

Hi Flavien,

That is the right way to do this. You should get exactly the same result if the property is correctly set.

The exception you get is a XML parsing error exception. A possible cause for this is that the output of your shell excutable is neither a valid XML, nor a exit code different from 0. You can add an EncapsulateSerializer behind the ShellConnector in order to see the output of your shell executable, and then fix the XML syntax error.

Regards,
Sylvain

RE: Include a property from lavoisier-config.properties in the entry of the shell connector - Added by FORESTIER Flavien almost 11 years ago

Hi Sylvain,

Thanks for the quick answer,
I will investigate on my side.

Regards,
Flavien

    (1-2/2)