Skip to content

Commit

Permalink
Merge pull request #221 from zivRhcl/Update-HCL-IAST-Log-Path
Browse files Browse the repository at this point in the history
Update HCL IAST Log Path. (Per my review it looks good to me.)
  • Loading branch information
davewichers authored Mar 11, 2024
2 parents 122c079 + 1c78656 commit a155f27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@
<cargo.jvmargs>
-Xmx8G
-javaagent:${basedir}/tools/HCL/secagent.jar=agent_path=${basedir}/tools/HCL/secagent.jar
-Dsecagent.log=${basedir}/tools/HCL/HCL-IAST.hcl
-Dsecagent.log=${basedir}/results/HCL-IAST.hcl
</cargo.jvmargs>
<cargo.servlet.port>8443</cargo.servlet.port>
<cargo.protocol>https</cargo.protocol>
Expand Down
14 changes: 2 additions & 12 deletions tools/HCL/runBenchmark_wHCL.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@ECHO OFF
IF EXIST .\secagent.jar (
IF EXIST .\HCL-IAST.hcl (
IF EXIST ..\..\results\HCL-IAST.hcl (

DEL .\HCL-IAST.hcl
DEL ..\..\results\HCL-IAST.hcl

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

CD ..\..

ECHO After Crawl is Complete, hit Ctrl-C to stop Benchmark Tomcat instance.
ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory.
ECHO.

CALL mvn clean package cargo:run -Pdeploywhcl -Drunenv=remote

ECHO Copying HCL reports to results directory

COPY tools\HCL\HCL-IAST.hcl results\Benchmark_HCL-IAST.hcl

CD tools\HCL

) ELSE (
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/.
)
10 changes: 2 additions & 8 deletions tools/HCL/runBenchmark_wHCL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

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

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

echo "Copying report to results directory"
benchmark_version=$(scripts/getBenchmarkVersion.sh)
result_file="results/Benchmark_$benchmark_version-HCL-IAST.hcl"
cp tools/HCL/HCL-IAST.hcl "$result_file"
cd tools/HCL

else

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

0 comments on commit a155f27

Please sign in to comment.