I'd like to again acknowledge Jessie Wilson whose gist for Rip.java (linked above) inspired this post. It may not have all the batteries included but it has all the kinds you could find without having to go to a specialty store. There are tons of things you can do quickly using just the JDK. Importing externally generated secret key into a keystore.Dumping Base64/raw secret keys from keystores.
Serving javadoc from the JDK docs zip file and javadoc jar files in your local Maven repository.I've written some tools that have helped me out tremendously: Avoid too much logic in the interpreter directive but don't be afraid to use logic if you have to.Run from the command line using bash SourceFile.java.Keep your tools SIMPLE, short and in 1 source file.Use as few dependencies as possible outside the JDK (ideally none).If you have an error, the compiler will tell you where it is and it won't attempt to run your program.ĭeveloping tools this efficiently means you should:
The best part about writing tools this way is that you can make changes to the code and "run" it again without worrying if compilation needs to happen.