The purpose of the Path-Based Module Generator is to create explicit-content modules based on the path of the source files containing the objects.
The tool scans the sub-folders of a provided root folder, that match a provided regexp filter, if any.
For each sub-folder, it checks that a corresponding module (named from the sub-folder name, prefixed with a given prefix) is already created; otherwise, it creates one based on an explicit list selecting all the objects whose absolute path starts with the sub-folder path.
When required, it cleans up the modules whose name is also prefixed with the given prefix, but no more matching with any sub-folder found in the root folder.
The Path-Based Module Generator is made of a Groovy script and a batch to launch it
This tool is provided by Maintenance Team, and published as an extension com.castsoftware.labs.tools.pathbasedmodulegenerator