You know how simple it is to run
... | python foo.py arg, arg | ... ... | ruby foo.rb arg, arg | ... ... | node foo.js arg, arg | ... ... | coffee foo.coffee arg, arg | ...
You've wished you could run
... | j Foo.java arg, arg | ...
Now you can.
- Get NodeJS >= 0.8.0
npm install -g javaq
alias j='javaq'to your profile
Then don't. If exactly one of the
.java files in
ls -lR . contains a
javaq will run that one.
.classs will be cached.
I want to eventually shave off every possible millisecond.
ls -lR .. Later, this will be limited to those needed to run the main class.
These must be specified before the first argument that matches
/\.java$/. Otherwise they will be passed on to the program you're running.
Optional. Defaults to
javaq will use this folder as it sees fit.
Optional. A folder containing JARs. Defaults to
~/Library/jars if that exists. Those JARs will be on the
-classpath when running