Skip to content

Commit 2f8fef5

Browse files
committed
Update HCL scripts and deploywhcl profile in pom.xml
1 parent c2a396a commit 2f8fef5

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,12 @@
574574
<overwrite>true</overwrite>
575575
</configfile>
576576
</configfiles>
577+
<home>${project.build.directory}/tomcat${tomcat.major.version}x</home>
577578
<properties>
578579
<cargo.jvmargs>
579580
-Xmx8G
580581
-javaagent:${basedir}/tools/HCL/secagent.jar=agent_path=${basedir}/tools/HCL/secagent.jar
581-
-Dsecagent.log=${basedir}/tools/HCL/working/HCL-IAST.hcl
582+
-Dsecagent.log=${basedir}/tools/HCL/HCL-IAST.hcl
582583
</cargo.jvmargs>
583584
<cargo.servlet.port>8443</cargo.servlet.port>
584585
<cargo.protocol>https</cargo.protocol>

tools/HCL/runBenchmark_wHCL.bat

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

5-
RMDIR /S /Q .\working
5+
DEL .\HCL-IAST.hcl
66

77
ECHO.
88
ECHO Previous results have been removed
@@ -19,7 +19,7 @@ IF EXIST .\secagent.jar (
1919

2020
ECHO Copying HCL reports to results directory
2121

22-
COPY tools\HCL\working\HCL-IAST.hcl results\Benchmark_HCL-IAST.hcl
22+
COPY tools\HCL\HCL-IAST.hcl results\Benchmark_HCL-IAST.hcl
2323

2424
CD tools\HCL
2525

tools/HCL/runBenchmark_wHCL.sh

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

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

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

7-
rm -r ./working/HCL-IAST.hcl
7+
rm ./HCL-IAST.hcl
88
echo ""
9-
echo "Previous results in /working removed"
9+
echo "Previous results removed"
1010
echo ""
1111

1212
fi
@@ -17,7 +17,7 @@ if [ -f ./secagent.jar ]; then
1717
echo "Copying report to results directory"
1818
benchmark_version=$(scripts/getBenchmarkVersion.sh)
1919
result_file="results/Benchmark_$benchmark_version-HCL-IAST.hcl"
20-
cp tools/HCL/working/HCL-IAST.hcl "$result_file"
20+
cp tools/HCL/HCL-IAST.hcl "$result_file"
2121
cd tools/HCL
2222

2323
else

0 commit comments

Comments
 (0)