Expand my Community achievements bar.

SOLVED

How to combine separated out dispatcher .any configuration files

Avatar

Level 3

Our dispatcher has the configuration broken out into separate .any files, like the WKND does (https://github.com/adobe/aem-guides-wknd/tree/main/dispatcher).  Is there a way to compile/assemble all of them into one file for debugging?  We have about 30 files so it would take a while to combine manually.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @AEM_Dan ,

 

there is no out-of-box way to combine those files. It is recommended to keep the files separated for proper segregation/readability. However, if you would like to combine them into one file, you will have to write a custom script that will do the job for you. You can use dispatcher optimizer tool to validate post merge - https://github.com/adobe/aem-dispatcher-optimizer-tool

 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi @AEM_Dan ,

 

there is no out-of-box way to combine those files. It is recommended to keep the files separated for proper segregation/readability. However, if you would like to combine them into one file, you will have to write a custom script that will do the job for you. You can use dispatcher optimizer tool to validate post merge - https://github.com/adobe/aem-dispatcher-optimizer-tool

 

Avatar

Level 3

Thanks for the reply.  That is unfortunate.  After reviewing the files, it's even more complex than I thought so combining them manually won't even be possible.  I may write a script to do this as you suggested.  If I do, I'll share here.