diff options
author | Sven Gothel <[email protected]> | 2023-01-20 04:12:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-01-20 04:12:48 +0100 |
commit | 7f820007531da1d44c8016dbba1e2f8ade17f0e5 (patch) | |
tree | 5f2635031da5ffaa90d815e6c4693dc37febc4ec | |
parent | 54ed519d5000765499f7783b57d00fbe75f5f046 (diff) |
check-java-major-version.sh: Use unique output to validate one class version used (52 for Java8)
-rwxr-xr-x | make/scripts/check-java-major-version.sh | 7 |
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 86a2c2832..172ffc1db 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 } |