Skip to content

Cleans Up Java Patch files, trying to minimize changes to import statements and applying added import statements

License

Notifications You must be signed in to change notification settings

kettingpowered/PatchCleanupUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage:

java -jar /path/to/generated/maven/artifact /path/to/patch/files /path to /source/directories

We are not responsible, if this Project breaks something. This is very much a hacked together project, made to help with simplification of Ketting Patch files. If you have a use for this, go ahead use or fork it (just make sure to respect the license).

This project is specialized for java patch files.

  • It will apply any import changes. No deleted or added import Lines should survive, after using this.
  • It will delete any added Whitespace lines, if the previous and next line has not been changed.
  • It will revert any deleted whitespace lines under the same conditions
  • It will also recalculate the hunk sizes. It won't check the line numbers in the hunk head.

Known Bugs:

  • static imports are handled incorrectly. This has not been worth any investigation/fixing, because it always affected a small subset of patches (usally single digit) in our repository.

About

Cleans Up Java Patch files, trying to minimize changes to import statements and applying added import statements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

 
 
 

Languages