No you don't need to raise a issue at felix, as it works as designed.
It is the proper way for the felix FileInstallation service to work with
ManagedService Factories.
Therefore you'll need a seperate configuration file for each directory to
watch.


regards, Achim


2014-07-23 12:22 GMT+02:00 BURN, James <[email protected]>:

> Hi
>
> Thanks for all your advice with this folks.
>
> I've got this working with separate cfg files as suggested.  This will
> make our implementation a lot more manageable.
>
> As a point of note, if you have an empty subdirectory under deploy/ you
> get an Error "Unable to create jar..." but this doesn't happen if there is
> a route or even a README file in the folder.
>
> It's kind of a pity the comma-separated list of watched directories didn't
> work - should this be raised as an Felix issue?
>
> Kind regards
>
> James
>
> -----Original Message-----
> From: Achim Nierbeck [mailto:[email protected]]
> Sent: 22 July 2014 20:07
> To: [email protected]
> Subject: Re: sub-directories in /deploy ?
>
> As documented in the link Krysztof gave you, you'll need to add a
> *org.apache.felix.fileinstall-configDir.cfg*
> configuration file containing the folders to watch. This has to be done
> for every folder that you want to watch.
>
> regards, Achim
>
>
> 2014-07-22 19:25 GMT+02:00 Krzysztof Sobkowiak <[email protected]
> >:
>
> > Hi James
> >
> > I tried this and it doesn't work for me too. It can be an issue in
> > Felix. Could you try to create separate configuration file for each
> > subdirectory you need as described here
> > http://felix.apache.org/site/apache-felix-file-install.html, section
> > *Watching multiple directories with File Install*?
> >
> > Regards
> > Krzysztof
> >
> > On 22.07.2014 15:30, 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
> >
> >
> > --
> > Krzysztof Sobkowiak
> >
> > JEE & OSS Architect | Senior Solution Architect @ Capgemini |
> > Committer @ ASF Capgemini <http://www.pl.capgemini.com/> | Software
> > Solutions Center <http://www.pl.capgemini-sdm.com/> | Wroclaw
> > e-mail: [email protected] <mailto:[email protected]> |
> > Twitter: @KSobkowiak
> > Calendar: http://goo.gl/yvsebC
> >
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <
> http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Reply via email to