As the deploy folder scanner is defined in etc/org.apache.felix.fileinstall-deploy.cfg file, you have to create another files containing the subfolders to scan, for instance:

etc/org.apache.felix.fileinstall-deployfoo.cfg
etc/org.apache.felix.fileinstall-deploybar.cfg
...

Regards
JB

On 07/22/2014 03:30 PM, BURN, James wrote:
Hi

I can't seem to get a comma separated list of directories to be read in.  
Felix/ServiceMix seems to be reading the line as a whole, so I get:

2014-07-22 14:13:19,341 | WARN  | 0c-73fa7ffbe4f7) | fileinstall                
      | ?                                   ? | 6 - 
org.apache.felix.fileinstall - 3.2.8 | /opt/apache-servicemix-5.1.0/deploy , 
/opt/apache-servicemix-5.1.0/deploy/NewFolder , 
/opt/apache-servicemix-5.1.0/deploy/OtherNewFolder does not exist, please 
create it.

etc/org.apache.felix.fileinstall-deploy.cfg contains:
felix.fileinstall.dir           = /opt/apache-servicemix-5.1.0/deploy , 
/opt/apache-servicemix-5.1.0/deploy/NewFolder , 
/opt/apache-servicemix-5.1.0/deploy/OtherNewFolder

And the NewFolder... directories are under /deploy

I tried putting the full filename/path in quotes, taking out the ${karaf.base} 
variable and escaping the comma, to no avail.

We're using ServiceMix 5.1.0 on Centos 6.5. I see from 
http://felix.apache.org/site/apache-felix-file-install.html this should work, 
but I'm out of ideas.

Any thoughts?

James


-----Original Message-----
From: BURN, James [mailto:[email protected]]
Sent: 18 July 2014 10:36
To: [email protected]
Subject: RE: sub-directories in /deploy ?

Super, thanks JB. I'll give that a go.

James

-----Original Message-----
From: Jean-Baptiste Onofré [mailto:[email protected]]
Sent: 16 July 2014 17:58
To: [email protected]
Subject: Re: sub-directories in /deploy ?

Hi James,

You can edit etc/org.apache.felix.fileinstall-deploy.cfg file and add multiple 
directories in the felix.fileinstall.dir property:

felix.fileinstall.dir=${karaf.base}/deploy,${karaf.base}/deploy/other,${karaf.base}/deploy/foo

Regards
JB

On 07/16/2014 04:41 PM, BURN, James wrote:
Hi

The implementation of ServiceMix 5.1.0 we are testing (on Centos) involves 
around 60 different blueprint-camel routes.

For development these routes are in subfolders with an average of 5 in each 
directory. As far as I can tell, as these are all hot-deployed, the 60 
individual routes will all end up dumped in $SMhome/deploy.

This may cause confusion (!), so we've got a fairly good naming convention 
going on to help. I just wanted to check is there any way of setting up 
sub-directories in the deploy directory?

Thanks

James






--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to