Skip to content

Commit 17f30c8

Browse files
committed
Minor enhancements to some tool scripts.
1 parent 4fb9a3c commit 17f30c8

File tree

9 files changed

+24
-16
lines changed

9 files changed

+24
-16
lines changed

scripts/runFindBugs.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# source "scripts/verifyBenchmarkPluginAvailable.sh" - Don't have .bat version of this (yet)
2+
23
# FindBugs is dead, so this specifies the specific (last) version of findbugs. Its version is not defined in the pom.xml file.
34
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
4-
CALL mvn compile org.codehaus.mojo:findbugs-maven-plugin:3.0.5:findbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
5-
CALL mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=findbugs
5+
call mvn compile org.codehaus.mojo:findbugs-maven-plugin:3.0.5:findbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
6+
call mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=findbugs
67

scripts/runFindSecBugs.bat

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# source "scripts/verifyBenchmarkPluginAvailable.sh" - Don't have .bat version of this (yet)
2-
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
3-
CALL mvn compile -Pfindsecbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
4-
CALL mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=findsecbugs
2+
3+
# The buildtime elements when invoking the findbugs-maven-plugin thru the findsecbugs profile leverage the
4+
# buildtime extension specified in: .mvn/extensions.xml
5+
call mvn compile -Pfindsecbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
6+
call mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=findsecbugs
57

scripts/runFindSecBugs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source "scripts/verifyBenchmarkPluginAvailable.sh"
2-
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
2+
# The buildtime elements when invoking the findbugs-maven-plugin thru the findsecbugs profile leverage the
3+
# buildtime extension specified in: .mvn/extensions.xml
34
mvn compile -Pfindsecbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
45
mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=findsecbugs
56

scripts/runPMD.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# source "scripts/verifyBenchmarkPluginAvailable.sh" - Don't have .bat version of this (yet)
2-
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
3-
CALL mvn compile pmd:pmd -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
4-
CALL mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=pmd
2+
# The buildtime elements when invoking the PMD plugin leverage the buildtime extension specified in: .mvn/extensions.xml
3+
call mvn compile pmd:pmd -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
4+
call mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=pmd
55

scripts/runPMD.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "scripts/verifyBenchmarkPluginAvailable.sh"
2-
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
2+
# The buildtime elements when invoking the PMD plugin leverage the buildtime extension specified in: .mvn/extensions.xml
33
mvn compile pmd:pmd -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
44
mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=pmd
55

scripts/runSnykSAST.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Install Snyk per: https://docs.snyk.io/snyk-cli/install-or-update-the-snyk-cli
2+
# Before running this, you must first run: snyk auth (and then authenticate) so snyk code is authorized to run.
3+
24
benchmark_version=$(scripts/getBenchmarkVersion.sh)
35
Snyk_version=$(snyk -v)
46

5-
snyk code --sarif-file-output=results/Benchmark_$benchmark_version-snykCodeCli-v$Snyk_version.sarif
7+
snyk code test --sarif-file-output=results/Benchmark_$benchmark_version-snykCodeCli-v$Snyk_version-$SECONDS.sarif
68

scripts/runSnykSAST_OnWindows.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Install Snyk per: https://docs.snyk.io/snyk-cli/install-or-update-the-snyk-cli
2+
# Before running this, you must first run: snyk auth (and then authenticate) so snyk code is authorized to run.
3+
24
benchmark_version=$(scripts/getBenchmarkVersion.sh)
35
Snyk_version=$(snyk-win -v)
46

5-
snyk-win code test --sarif-file-output=results/Benchmark_$benchmark_version-snykCodeCli-v$Snyk_version.sarif
7+
snyk-win code test --sarif-file-output=results/Benchmark_$benchmark_version-snykCodeCli-v$Snyk_version-$SECONDS.sarif
68

scripts/runSpotBugs.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# source "scripts/verifyBenchmarkPluginAvailable.sh" - Don't have .bat version of this (yet)
2-
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
3-
CALL mvn compile spotbugs:spotbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
4-
CALL mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=spotbugs
2+
# The buildtime elements when invoking the Spotbugs plugin leverage the buildtime extension specified in: .mvn/extensions.xml
3+
call mvn compile spotbugs:spotbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
4+
call mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=spotbugs
55

scripts/runSpotBugs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "scripts/verifyBenchmarkPluginAvailable.sh"
2-
# The buildtime elements when invoking the findbugs-maven-plugin leverage the buildtime extension specified in: .mvn/extensions.xml
2+
# The buildtime elements when invoking the Spotbugs plugin leverage the buildtime extension specified in: .mvn/extensions.xml
33
mvn compile spotbugs:spotbugs -Dbuildtime.output.csv=true -Dbuildtime.output.csv.file=../data/out.csv
44
mvn org.owasp:benchmarkutils-maven-plugin:append-time -DtoolName=spotbugs
55

0 commit comments

Comments
 (0)