An existing project package name is similar to com.company..... How can I simply change the package name to com.test.....
If the project is a maven project, how should it be modified?
曾经蜡笔没有小新2017-06-12 09:25:11
If you use intellij idea, right-click the package --> Refactor --> Rename, automatically modify the package and modify the references in the code
我想大声告诉你2017-06-12 09:25:11
Does the IDE have this kind of refactoring function?
If not, here is a batch replacement method:
find . | xargs -I file sed s/com.xxx/com.yyy/g -i file
find
You can add -name
to filter java and xml files without writing mobile phone code.
ringa_lee2017-06-12 09:25:11
Find the location of your project on your computer and double-click the folder name to modify it