Closed pun-ky closed 4 years ago
It would be nice if automatic scripts execution will be performed if package has corresponding vault hook defined like in AC tool, and consumed e.g in this way: https://github.com/Cognifide/gradle-aem-multi/blob/master/aem/sites/build.gradle.kts#L43 personally, I am convinced that it is a very elegant way, because permission management is placed directly in application / under same /apps/folder in repository (https://github.com/Cognifide/gradle-aem-multi/tree/master/aem/sites/src/main/content/jcr_root/apps/example/sites/permissions)
I am not sure if currently available mechanism using jcr listener will work properly with multiple files and script inclusions
It's done slightly different than in the ticket. There is still one place to store scripts: /conf/apm/scripts. And script needs to have property cqsm:executionMode= ON_HOOK.
/conf/apm/scripts
cqsm:executionMode= ON_HOOK
It would be nice if automatic scripts execution will be performed if package has corresponding vault hook defined like in AC tool, and consumed e.g in this way: https://github.com/Cognifide/gradle-aem-multi/blob/master/aem/sites/build.gradle.kts#L43 personally, I am convinced that it is a very elegant way, because permission management is placed directly in application / under same /apps/folder in repository (https://github.com/Cognifide/gradle-aem-multi/tree/master/aem/sites/src/main/content/jcr_root/apps/example/sites/permissions)
I am not sure if currently available mechanism using jcr listener will work properly with multiple files and script inclusions