Created
September 1, 2016 16:28
-
-
Save BillBarnhill/4bc4dcf45d8d2293172b0b058a689f4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find src/main/java/com/a/p2/c -name *.java -exec grep -H package {} \; -exec sed -i '' 's/package com.a.p1.c/package com.a.p2.c/‘ {} \; -exec grep -H package {} \; | |
| First move *.java files to new directory. Then use above to change from old package name (e.g., com.a.p1.c) to new package name (e.g., com.a.p2.c). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment