summaryrefslogtreecommitdiffstats
path: root/make/scripts/check-java-major-version.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-20 04:12:21 +0100
committerSven Gothel <[email protected]>2023-01-20 04:12:21 +0100
commitb420bdc90195bf952050a77d3b6fb33497bb3590 (patch)
tree42c788c8260c9b0cf0eccd6d5ce256020e9ccef4 /make/scripts/check-java-major-version.sh
parentfcfc7688c54988acb420f30fbda226fd2368c04f (diff)
check-java-major-version.sh: Use unique output to validate one class version used (52 for Java8)
Diffstat (limited to 'make/scripts/check-java-major-version.sh')
-rwxr-xr-xmake/scripts/check-java-major-version.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/make/scripts/check-java-major-version.sh b/make/scripts/check-java-major-version.sh
index 6b1711c..fc9f53c 100755
--- a/make/scripts/check-java-major-version.sh
+++ b/make/scripts/check-java-major-version.sh
@@ -10,9 +10,10 @@ function dump_version() {
function dump_versions() {
cd $1
#dump_version jogamp.common.Debug
- for i in `find . -name '*.class'` ; do
- dump_version `echo $i | sed -e 's/\//./g' -e 's/\.class//g'`
- done
+ javap -v `find . -name '*.class'` | grep -e '^Classfile' -e 'major version'
+ #for i in `find . -name '*.class'` ; do
+ # dump_version `echo $i | sed -e 's/^\.\///g' -e 's/\//./g' -e 's/\.class//g'`
+ #done
cd $TDIR
}