Skip to content

Commit f5e90e4

Browse files
authored
Merge pull request #198 from zivRhcl/Update-HCL-IAST-scripts
Update HCL IAST scripts
2 parents c2a396a + ed62f02 commit f5e90e4

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
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: 4 additions & 4 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
@@ -15,11 +15,11 @@ IF EXIST .\secagent.jar (
1515
ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory.
1616
ECHO.
1717

18-
CALL mvn clean package cargo:run -Pdeploywhcl
18+
CALL mvn clean package cargo:run -Pdeploywhcl -Drunenv=remote
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
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 have been removed"
1010
echo ""
1111

1212
fi
1313

1414
cd ../..
15-
mvn clean package cargo:run -Pdeploywhcl
15+
mvn clean package cargo:run -Pdeploywhcl -Drunenv=remote
1616

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)