Change java project package name easily with CLI tool jpkgchanger
!
pip install jpkgchanger
To change package name for java project source code from com.examole
to com.another
run in the project root directory:
jpkgchanger --current com.example --target com.another
To ignore some folders or files you can use --protected_dirs
or --protected_files
arguments:
jpkgchanger --current com.example --target com.another \
--protected_dirs .git \
--protected_files .gitignore \
/