Object: Mark Depreated
In some environments objects are not allowed to be deleted. After some time the environment will contain unused objects. To be able to mark this objects as deprecated they can be renamed, e.g. adding a prefix to the name. This task can be performed by this module. If necessary a rollback of such a renaming can also be done with this module.
Designation
- Name
- tp.MarkDeprecated
- Aliases
- Import, ObjectMarkDeprecated
Configuration
- Optionen
- Test mode (
test-mode
) - Activates a simulation mode
- New name pattern (
new-name
) - Defines a pattern for the new names. %s is replaced with the old name
- Revert the marking of deprecated objects (
rollback
) - Reverts the marking of deprecated objects
- Rename references (
references
) - Also renames references to the marked objects
- b4A object list contains old object names (
old-names
) - On rollback this option controls if the old object names can be read from the b4A object list or if the names need to be calculated.
- Unused only (
unused-only
) - Marks only unused objects as deprecated
- Folder for deprecated objects (
move-to
) - If given the deprecated objects are moved to this folder
Description
It is also possible to move the obsolete objects to another base folder. The previous folder structure is created below the new base folder. If the objects are to be moved back to the original folder when they are restored, the same base folder of the obsolete objects must be specified again as when marking them as obsolete objects.
Example:
./b4a.sh tp.MarkDeprecated -C B4A-3 --folder TEST --move-to _DEPRECATED
To restore with move:
./b4a.sh tp.MarkDeprecated -C B4A-3 --folder _DEPRECATED/TEST --move-to _DEPRECATED --rollback