Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo ===============================================================================================================
- set TOP=%1
- if not "%TOP%"=="" goto scanning
- set TOP=1.5
- :scanning
- echo Checking for java classes with versions higher than %TOP% in all .jar files in the current directory
- del jarcheck.log
- FOR %%j IN (*.jar) DO java.exe -ea -jar %~d0%~p0\jarcheck.jar %%~fj 1.1 %TOP% 2>> jarcheck.log > null
- echo ===============================================================================================================
- echo Problems found (also at jarcheck.problems)
- type jarcheck.log | grep -v OK | grep -v "Wrong" | grep -v "Checking jar" > jarcheck.problems
- type jarcheck.problems
- del jarcheck.log
- echo ===============================================================================================================
Add Comment
Please, Sign In to add comment