@echo off REM Copy, compress and sign a JAR file REM args are setlocal set tmp="%~dp2%~nx1" copy %1 %tmp% REM pack200 --repack --no-keep-file-order --strip-debug %tmp% pack200 --repack --no-keep-file-order %tmp% jarsigner -keystore %3 -storepass %4 %tmp% %5 pack200 --effort=9 %2 %tmp% del %tmp% endlocal