Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. @echo off
  2. echo ===============================================================================================================
  3. set TOP=%1
  4. if not "%TOP%"=="" goto scanning
  5. set TOP=1.5
  6. :scanning
  7. echo Checking for java classes with versions higher than %TOP% in all .jar files in the current directory
  8. del jarcheck.log
  9. FOR %%j IN (*.jar) DO java.exe -ea -jar %~d0%~p0\jarcheck.jar %%~fj 1.1 %TOP% 2>> jarcheck.log > null
  10. echo ===============================================================================================================
  11. echo Problems found (also at jarcheck.problems)
  12. type jarcheck.log | grep -v OK | grep -v "Wrong" | grep -v "Checking jar" > jarcheck.problems
  13. type jarcheck.problems
  14. del jarcheck.log
  15. echo ===============================================================================================================
Add Comment
Please, Sign In to add comment