From 3ac6d071689d7c8ce8e881243a9015e7fb37204f Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 24 Apr 2017 09:52:06 +0200 Subject: [PATCH] Skip forbidden API check when running examples Motivation: We should skip the forbidden API check when run the examples as otherwise it may fail. Modifications: Skip the API check in run-example.sh Result: Be able to run the examples in all cases. --- run-example.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-example.sh b/run-example.sh index 3d7667df32..1c064ac125 100755 --- a/run-example.sh +++ b/run-example.sh @@ -111,4 +111,4 @@ done cd "`dirname "$0"`"/example echo "[INFO] Running: $EXAMPLE ($EXAMPLE_CLASS $EXAMPLE_ARGS)" -exec mvn -q -nsu compile exec:exec -Dcheckstyle.skip=true -Dforcenpn="$FORCE_NPN" -DargLine.example="$EXAMPLE_ARGS" -DexampleClass="$EXAMPLE_CLASS" +exec mvn -q -nsu compile exec:exec -Dcheckstyle.skip=true -Dforbiddenapis.skip=true -Dforcenpn="$FORCE_NPN" -DargLine.example="$EXAMPLE_ARGS" -DexampleClass="$EXAMPLE_CLASS"