Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HCL IAST Log Path #221

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading