Please see Path-Based Module Generator - Release Notes for more information.
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
Follow the below prerequisites before running the tool:
The batch file must be configured with the following mandatory variables : FLATDIR, LOGDIR, ROOTDIR, CONNECTION_PROFILE, APP_NAME
There are optional variables : MODULE_PREFIX, PATH_FILTER, CLEANUP
FLATDIR must be set to the CAST Installation path
MODULE_PREFIX is a string added at the beginning of subfolder names in order to build module names
Generate Path-Based Explicit-Content Modules