Skip to content

Commit

Permalink
Skip forbidden API check when running examples
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
normanmaurer committed Apr 24, 2017
1 parent 7f3b75a commit 3ac6d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3ac6d07

Please sign in to comment.