Skip to content

Commit

Permalink
Merge pull request #20579 from tjwatson/disableCheckConfiguration
Browse files Browse the repository at this point in the history
Disable osgi.checkConfiguration by default
  • Loading branch information
tjwatson authored Mar 26, 2022
2 parents 1173f52 + 2060f30 commit 414df02
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static void configure(BootstrapConfig config) {
* <li>osgi.user.area -- set to the server directory (parent of workarea)
* <li>osgi.framework.activeThreadType -- none; prevent equinox from
* spawning a thread to prevent framework from stopping
* <li>osgi.checkConfiguration -- true; ensure equinox checks for updates to
* <li>osgi.checkConfiguration -- false; Avoid equinox timestamp check on
* referenced jars
* <li>osgi.compatibility.eagerStart.LazyActivation -- false; do not
* auto-start bundles with Bundle-ActivationPolicy: lazy
Expand Down Expand Up @@ -96,11 +96,10 @@ protected static void customize(BootstrapConfig config) {
// equinox to do that.
config.put("osgi.framework.activeThreadType", "none");

// Use an equinox property to ensure that equinox checks whether or not
// the jar files we're installing (for file:// URLs) have changed if
// osgi is not starting clean. If the bundle jar has changed, associated
// cached data is tossed.
config.putIfAbsent("osgi.checkConfiguration", "true");
// No longer check timestamps of JARs from Equinox
// on restart. It is assumed any new Liberty bundles
// will use a different location on disk
config.putIfAbsent("osgi.checkConfiguration", "false");

// We do not want Bundle-ActivationPolicy: lazy to cause bundle
// resolution to automatically start bundles.
Expand Down

0 comments on commit 414df02

Please sign in to comment.