How to combine separated out dispatcher .any configuration files | Community
Skip to main content
AEM_Dan
Level 3
March 29, 2023
Solved

How to combine separated out dispatcher .any configuration files

  • March 29, 2023
  • 1 reply
  • 1045 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anish-Sinha

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

 

1 reply

Anish-Sinha
Adobe Employee
Anish-SinhaAdobe EmployeeAccepted solution
Adobe Employee
March 29, 2023

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

 

AEM_Dan
AEM_DanAuthor
Level 3
April 13, 2023

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.