This is tool for change java project package. This tool just for education use.
Tool's core is use java.io API.
Tool's UI is use JavaFX2(Java8).
Tool use log4j to save log file.
##UI setting as below:
1. Project: Please select your project file.
2. Add: Please select your java code source folder(can add mulitple folder)
3. Old Package: Please input the package name that you want to change. e.g. hyc.edu.emotion
4. New Package: Please input the new package name. e.g. com.hyc.emotion
5. Start Replace: After click,tool will begin to modify all old package file in the project,and move to new package.
6. Log monitor: It will show all modify and move file list.
7. Log file: It will create at the runnable jar's same path.
#Please be careful for your operation 1.Suggest to backup your project before use this tool. 2.Improper operation,this tool have the opportunity to destroy your project structure.
##Known Defect as below: 1.Old package name cannot just input unit word. e.g. Old Package: resource This tool cannot discern the unit word is attribute or package name. 2.if project is Android app project, after change package finish, please check the AndroidManifest.xml. This tool will not replace the relative path in the file.
#License
Copyright 2015 Leo_Chen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.