You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a newbie trying to use SpotBugs 4.8.3 from the RHEL 8.9 command line and having a fair amount of difficulty. I had to chmod +x /path/to/spotbugs/bin/spotbugs script. Should I have to do that? I would think the script should already be executable when I untar the spotsbug-4.8.3.tgz file.
Regardless, I couldn't get the spotbugs script to work, so I switched to using java to execute the spotgsbug.jar file directly. That at least started the GUI, but I really want to use it from the command line, so I started to investigate the command line options and was surprised to discover -version doesn't return anything.
java -jar /path/to/spotbugs/lib/spotbugs.jar -help works though. The -help output says -version should "print version, check for updates and exit, without running analysis". It doesn't.
The text was updated successfully, but these errors were encountered:
I found Version.printVersion() will print version info using info level of log. But the configed default level of log in log4j2.xml is ERROR. So version info won't print to the console.
I'm a newbie trying to use SpotBugs 4.8.3 from the RHEL 8.9 command line and having a fair amount of difficulty. I had to
chmod +x /path/to/spotbugs/bin/spotbugs
script. Should I have to do that? I would think the script should already be executable when I untar thespotsbug-4.8.3.tgz
file.Regardless, I couldn't get the
spotbugs
script to work, so I switched to using java to execute thespotgsbug.jar
file directly. That at least started the GUI, but I really want to use it from the command line, so I started to investigate the command line options and was surprised to discover-version
doesn't return anything.java -jar /path/to/spotbugs/lib/spotbugs.jar -help
works though. The-help
output says-version
should "print version, check for updates and exit, without running analysis". It doesn't.The text was updated successfully, but these errors were encountered: