| |

VerySource

 Forgot password?
 Register
Search
View: 714|Reply: 4

Modify package names in bulk

[Copy link]

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-11-4 11:30:01
| Show all posts |Read mode
I have opened a WEB project and want to change one of the package names. Which software can be used for this?
Reply

Use magic Report

0

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-11-4 15:45:01
| Show all posts
Eclipse
Reply

Use magic Report

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-11-4 20:15:01
| Show all posts
I use ECLIPSE. How can I change it? This package has been imported into each file. Thank you for how to change it.
Reply

Use magic Report

0

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-11-4 21:45:01
| Show all posts
Refactor-source code-rename-enter a new package name
After confirmation, all references are revised.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-11-4 22:15:01
| Show all posts
I did something like this before
My approach may be stupid
I open all the java files or other files that need to modify the package name with editplus
Then ctrl+h replace
Select all open files
Find the target string that needs to be modified
Then fill in the result you want to modify
Modify all files
But there may be problems, you can make the feature string longer to reduce the chance of error
Finished and then confirm it in java ide (I use eclipse)
Stupid way
There should be other good ways
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list