Use java annotation removal tool

This commit is contained in:
Marian Koncek 2024-09-18 14:50:02 +02:00
commit 4cd54af842

View file

@ -43,6 +43,7 @@ BuildRequires: java-devel
BuildRequires: google-gson
BuildRequires: desktop-file-utils
BuildRequires: classpathless-compiler
BuildRequires: jurand
Requires: google-gson
Requires: byteman
Requires: rsyntaxtextarea
@ -125,6 +126,8 @@ This package provides bindings and requirements to asmtools7 disassembler and as
%patch 63 -p0
%patch 7 -p1
%java_remove_annotations decompiler_agent runtime-decompiler -s -n SuppressFBWarnings
%build
pushd runtime-decompiler
%pom_remove_plugin :maven-jar-plugin
@ -133,11 +136,6 @@ popd
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :formatter-maven-plugin
%pom_remove_dep :spotbugs-annotations
a=`find | grep ".*\.java$"`
for x in $a ; do
#grep -e ".*SuppressFBWarnings.*" $x && echo "^ $x ^"
sed "s/.*SuppressFBWarnings.*//g" $x -i
done
xmvn --version
echo $JAVA_HOME
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk #why?