Skip to content

Commit 7f3309c

Browse files
authored
Merge pull request #504 from kwwall/scripts
New scripts to suppress noise for 'mvn test'
2 parents c19f74b + e0934ba commit 7f3309c

File tree

5 files changed

+29
-22
lines changed

5 files changed

+29
-22
lines changed

scripts/README.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This directory is for utilities used for building / packaging / releasing ESAPI.
2+
3+
========================
4+
5+
README.txt -- This readme file.
6+
esapi-release.sh -- Obsolete script to create new ESAPI release. Will be replaced soon. Do not use for now.
7+
mvnQuietTest.bat -- Run 'mvn test' from DOS cmd prompt with logSpecial output suppressed.
8+
mvnQuietTest.sh -- Run 'mvn test' from bash with logSpecial output suppressed.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
4040
############################################################################
4141

42+
echo $0: This script is obsolete and will be replaced soon.
43+
echo In the meantime, read through the release instructions in:
44+
echo " documentation/ESAPI-release-steps.odt"
45+
exit 2
46+
4247
#
4348
# Tunable parameters
4449
#

scripts/mvnQuietTest.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@ECHO off
2+
rem Purpose: Run 'mvn test' with system property
3+
rem 'org.owasp.esapi.logSpecial.discard'
4+
rem set to true, so that all of the logSpecial output is suppressed.
5+
rem This reduces the total output of 'mvn test' by about 2000 or so
6+
rem lines.
7+
8+
mvn -Dorg.owasp.esapi.logSpecial.discard=true test %*

scripts/mvnQuietTest.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Purpose: Run 'mvn test' with system property
3+
# 'org.owasp.esapi.logSpecial.discard'
4+
# set to true, so that all of the logSpecial output is suppressed.
5+
# This reduces the total output of 'mvn test' by about 2000 or so
6+
# lines.
7+
8+
exec mvn -Dorg.owasp.esapi.logSpecial.discard=true test $@

src/util/README.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)