Skip to content

Commit

Permalink
added cron support
Browse files Browse the repository at this point in the history
  • Loading branch information
dprzybyl committed Oct 18, 2023
1 parent 6a39e16 commit aafd21a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ public void deactivate() {
}

@Override
public void onChange(List<ResourceChange> list) {
public void onChange(List<ResourceChange> changes) {
Bundle currentBundle = FrameworkUtil.getBundle(ScriptsResourceChangeListener.class);
BundleContext bundleContext = currentBundle.getBundleContext();

SlingHelper.operateTraced(resolverProvider, resolver ->
list.stream()
changes.stream()
.filter(resourceChange -> StringUtils.endsWith(resourceChange.getPath(), Apm.FILE_EXT))
.forEach(resourceChange -> {
if (resourceChange.getType() == ResourceChange.ChangeType.ADDED) {
Expand Down

0 comments on commit aafd21a

Please sign in to comment.