Skip to main content

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:

Failed

Success

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ivy_cms_unused_cleaner-0.0.9.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ivy_cms_unused_cleaner-0.0.9-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file ivy_cms_unused_cleaner-0.0.9.tar.gz.

File metadata

  • Download URL: ivy_cms_unused_cleaner-0.0.9.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for ivy_cms_unused_cleaner-0.0.9.tar.gz
Algorithm Hash digest
SHA256 48ce2a3ea90ac0f28d968fbc4c1699ab3455a76f557e951a2d785a0270e6ad19
MD5 0e4c186bc067b63937566a993f8e5169
BLAKE2b-256 07b47548f9bfa24475200557a02d4908e4fee16f39b80510204227216ea06d79

See more details on using hashes here.

File details

Details for the file ivy_cms_unused_cleaner-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: ivy_cms_unused_cleaner-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for ivy_cms_unused_cleaner-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dd459ac2e7eaa78466f590a9374278af7b0bc03cd7ec76bf0f2634526e98c8a3
MD5 7e7263bb9ea7aa26064174d1c97da4f9
BLAKE2b-256 a5f0d9be7955121289a5f2ce57763d31c422f715f687f8f4af3b79f5af097d38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page