multiple bug fixes on Windows shell:
- Add setlocal/endlocal to isolate variables
- Error handling
- pushd should take the current directory in parameter
- %* makes the code simpler for the same result I think
- Use PRGDIR instead of %~dp0 since it's nicely made available right abocve
Ignore files generated by m2e
Java 6 specific classes are used
Need to use delayed extension to get a full classpath. And also, -jar makes java ignore the classpath
Check if the directory exist first