Insert files into Java package directories and add imports for package-ified files that were previously all in the same package (in the same folder) based on a package definition file that contains a line for every class with the class name and target package (Ex: GameFrame;com.marcusman)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src/main/java/com/marcusman/packageify
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Package-ify

Inserts files into Java package directories and adds imports for package-ified files that were previously all in the same package (in the same folder)

Usage:
Packageify puts files that were originally all in the same folder in organized packages based on input information.

Program arguments: java -jar package-ify "path to folder with all java files" "package definition txt file" "output folder"

Example of package definition file:
"ClassName";"package.path"
AnimatedSprite;com.marcusman.graphics
Game;com.marcusman
GameObject;com.marcusman.utils
GUI;com.marcusman.graphics.gui
GUIButton;com.marcusman.graphics.gui
KeyBoardListener;com.marcusman.input
Map;com.marcusman.logic
MouseEventListener;com.marcusman.input
Player;com.marcusman.logic
Rectangle;com.marcusman.utils
RenderHandler;com.marcusman.graphics
SDKButton;com.marcusman.graphics.gui
Sprite;com.marcusman.graphics
SpriteSheet;com.marcusman.graphics
Tiles;com.marcusman.logic