I wanted to share here a useful script of mine.
I am developing some java CLI software under Eclipse.
For time to time, I find it useful to run it from the command line with custom arguments (with Cygwin in my case), instead of creating a new “Run configuration” in eclipse.
My eclipse project depends on some other “core” projects and a bunch of libs.
So I needed a bash launcher …
So here is my solution :
I used to hardcode this whole CLASSPATH in a launcher script, but it was a pain to maintain.
So recently, I wrote a bash script that automatically parses the “.classpath” files recursively and generates CLASSPATH dynamically. This way, my launcher is always up to date. I have also added a “debug” option, that launches Java in remote debug mode.
Hope this helps someone.