Skip to content

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)

License

Notifications You must be signed in to change notification settings

marcdubs/package-ify

Repository files navigation

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

About

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)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages