Skip to content

Commit a155f27

Browse files
authored
Merge pull request #221 from zivRhcl/Update-HCL-IAST-Log-Path
Update HCL IAST Log Path. (Per my review it looks good to me.)
2 parents 122c079 + 1c78656 commit a155f27

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@
584584
<cargo.jvmargs>
585585
-Xmx8G
586586
-javaagent:${basedir}/tools/HCL/secagent.jar=agent_path=${basedir}/tools/HCL/secagent.jar
587-
-Dsecagent.log=${basedir}/tools/HCL/HCL-IAST.hcl
587+
-Dsecagent.log=${basedir}/results/HCL-IAST.hcl
588588
</cargo.jvmargs>
589589
<cargo.servlet.port>8443</cargo.servlet.port>
590590
<cargo.protocol>https</cargo.protocol>

tools/HCL/runBenchmark_wHCL.bat

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@ECHO OFF
22
IF EXIST .\secagent.jar (
3-
IF EXIST .\HCL-IAST.hcl (
3+
IF EXIST ..\..\results\HCL-IAST.hcl (
44

5-
DEL .\HCL-IAST.hcl
5+
DEL ..\..\results\HCL-IAST.hcl
66

77
ECHO.
88
ECHO Previous results have been removed
@@ -11,18 +11,8 @@ IF EXIST .\secagent.jar (
1111

1212
CD ..\..
1313

14-
ECHO After Crawl is Complete, hit Ctrl-C to stop Benchmark Tomcat instance.
15-
ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory.
16-
ECHO.
17-
1814
CALL mvn clean package cargo:run -Pdeploywhcl -Drunenv=remote
1915

20-
ECHO Copying HCL reports to results directory
21-
22-
COPY tools\HCL\HCL-IAST.hcl results\Benchmark_HCL-IAST.hcl
23-
24-
CD tools\HCL
25-
2616
) ELSE (
2717
ECHO HCL is a commercial product, so you need a licensed version of HCL in order to run it on the Benchmark. If you have access to HCL, download the HCL Agent for Java ^(secagent.jar^), put it into the /tools/HCL folder, and then rerun this script. Please contact HCL at https://www.hcl.com/.
2818
)

tools/HCL/runBenchmark_wHCL.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
if [ -f ./secagent.jar ]; then
44

5-
if [ -d ./HCL-IAST.hcl ]; then
5+
if [ -d ../../results/HCL-IAST.hcl ]; then
66

7-
rm ./HCL-IAST.hcl
7+
rm ../../results/HCL-IAST.hcl
88
echo ""
99
echo "Previous results have been removed"
1010
echo ""
@@ -14,12 +14,6 @@ if [ -f ./secagent.jar ]; then
1414
cd ../..
1515
mvn clean package cargo:run -Pdeploywhcl -Drunenv=remote
1616

17-
echo "Copying report to results directory"
18-
benchmark_version=$(scripts/getBenchmarkVersion.sh)
19-
result_file="results/Benchmark_$benchmark_version-HCL-IAST.hcl"
20-
cp tools/HCL/HCL-IAST.hcl "$result_file"
21-
cd tools/HCL
22-
2317
else
2418

2519
echo "secagent.jar is required to run the Benchmark with HCL IAST. Please contact HCL at https://www.hcl.com/."

0 commit comments

Comments
 (0)