I'm working to update a build for production by building up a new launchpad
project and starting the updated jar against the previous data.  I've
noticed that even with overwrite:=true or overwriteProperties:=true, initial
content is not reloaded even when a new version of a bundle is
introduced.  Through
a few rounds of debugging, I found in the code [1] that isUpdated or
contentAlreadyLoaded seem to be the keys to loading the content on server
start.

For a bundle named "great-bundle", I've found that I can set a property in
JCR, /var/sling/bundle-content/great-bundle/content-loaded = false, and am
able to load initial content from an updated bundle on server start.  While
I've found that I can delete or remove this property in JCR to do what I
want, is this the suggested way of updating initial content from a new
launchpad application jar?

1
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java?revision=1000833&view=markup
:
line 157

Reply via email to