Use this to remove unused CMS in your ivy project
Project description
Ivy Used CMS Scanner
About
Large AxonIvy projects usually have huge number amount of CMSs, and overtime, after countless times
of adding, updating and removing the CMSs, there will be zoombie
CMSs in your code base.
The idea of this tool is pretty simple:
In each project:
- List out all *.data and co.meta files
- Group the *.data files with their corresponding co.meta file
- Search the CMS in [*.java, *.drl, *.xhtml, *.mod] files using > - CMS's path (example: /fintech/soba/authentication/message/accessdenied)
- If no result found -> CMS is not being used
WARNING: If the CMS is not hard-coded, it will be deleted
.
Installation
pip install rich
pip install ivy_cms_unused_cleaner
Usage
Create a Python script
from ivy_cms_unused_cleaner import cms_cleaner
from rich.prompt import Prompt
from rich.console import Console
import os
console = Console()
if __name__ == '__main__':
path = Prompt.ask("Please enter the absolute path to your project")
console.print("Process [bold purple]" + path)
# move to the project folder
os.chdir(path)
cleaner = cms_cleaner.cms_cleaner()
cleaner.get_all_cms()
cleaner.get_unused_cms()
Run the script
python cms_scanner.py
Example output:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ivy_cms_unused_cleaner-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48ce2a3ea90ac0f28d968fbc4c1699ab3455a76f557e951a2d785a0270e6ad19 |
|
MD5 | 0e4c186bc067b63937566a993f8e5169 |
|
BLAKE2b-256 | 07b47548f9bfa24475200557a02d4908e4fee16f39b80510204227216ea06d79 |
Close
Hashes for ivy_cms_unused_cleaner-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd459ac2e7eaa78466f590a9374278af7b0bc03cd7ec76bf0f2634526e98c8a3 |
|
MD5 | 7e7263bb9ea7aa26064174d1c97da4f9 |
|
BLAKE2b-256 | a5f0d9be7955121289a5f2ce57763d31c422f715f687f8f4af3b79f5af097d38 |