FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix WriteTime and pom.xml to properly calculate scan times and add · ghdevnull/BenchmarkJava@a6b9626 · GitHub

Commit a6b9626

Browse files
committed
Fix WriteTime and pom.xml to properly calculate scan times and add
scan times to the file names for the 4 open source scanners bundled with Benchmark.
1 parent ac1cc06 commit a6b9626

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

‎pom.xml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,14 @@ But it might be needed for Java 10, because I get this error, that I don't get w
966966
<build>
967967
<finalName>benchmark</finalName>
968968

969+
<extensions>
970+
<extension>
971+
<groupId>co.leantechniques</groupId>
972+
<artifactId>maven-buildtime-extension</artifactId>
973+
<version>2.0.2</version>
974+
</extension>
975+
</extensions>
976+
969977
<resources>
970978
<resource>
971979
<directory>${basedir}/src/main/resources</directory>

‎src/main/java/org/owasp/benchmark/score/WriteTime.java‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/**
2+
* OWASP Benchmark Project
3+
*
4+
* This file is part of the Open Web Application Security Project (OWASP)
5+
* Benchmark Project For details, please see
6+
* <a href="https://owasp.org/www-project-benchmark">https:/owasp.org/www-project-benchmark</a>.
7+
*
8+
* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms
9+
* of the GNU General Public License as published by the Free Software Foundation, version 2.
10+
*
11+
* The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
12+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details
14+
*
15+
* @author Dave Wichers
16+
* @created 2015
17+
*/
18+
119
package org.owasp.benchmark.score;
220

321
import java.io.BufferedReader;
@@ -64,9 +82,11 @@ public static void main(String[] args) throws Exception {
6482
csvToolName = "exec-maven-plugin:java";
6583
break;
6684
case "findbugs":
85+
csvToolName = "findbugs";
86+
break;
6787
case "findsecbugs":
6888
case "spotbugs":
69-
csvToolName = "findbugs";
89+
csvToolName = "spotbugs";
7090
break;
7191
case "pmd":
7292
csvToolName = "pmd";

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL