Thanks for the information Carsten!
Then I will to post for now and copy the files with own code.
Best,
Sandro
Am 27.11.15 um 15:17 schrieb Carsten Ziegeler:
Hi Sandro,
the API is in fact the OSGi Configuration Admin :) You can create an
OSGi Configuration and this will mount the provider. That's basically
the server side part of the POST request.
Regards
Carsten
Sandro Boehme wrote
Hi,
on activation of the sitebuilder bundle I would like to copy a folder to
sling_home and mount it as a FS Resource.
It is used for example to contain the frontend packages (npm,
github,...) and as they can get updated at runtime the FS folder should
be mounted to the repo.
If there is no API for copying things to sling_home I would simply do
that on my own but whats a bit more important is, that I haven't found
an API for mounting a FS Resource. Of course I could send a post request
to the config manager like
'AbstractBundleInstallMojo().addConfiguration()' does. But my code
already runs in the same VM so this is too much overhead in my opinion.
It would be good to call the FileMonitor directly but it's in an
'internal' package which is marked private.
Is there an other API that I've missed?
Best,
Sandro