KAFKA-6997: Exclude test-sources.jar when $INCLUDE_TEST_JARS is FALSE

Exclude test-sources.jar when $INCLUDE_TEST_JARS is FALSE

Author: Magesh Nandakumar <magesh.n.kumar@gmail.com>

Reviewers: Konstantine Karantasis <konstantine@confluent.io>, Robert Yokota <rayokota@gmail.com>, Arjun Satish <arjun@confluent.io>, Randall Hauch <rhauch@gmail.com>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #5139 from mageshn/KAFKA-6997
This commit is contained in:
Magesh Nandakumar 2018-06-05 16:27:22 -07:00 committed by Ewen Cheslack-Postava
parent c238e14ac6
commit e5492d7726
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if [ -z "$INCLUDE_TEST_JARS" ]; then
fi fi
# Exclude jars not necessary for running commands. # Exclude jars not necessary for running commands.
regex="(-(test|src|scaladoc|javadoc)\.jar|jar.asc)$" regex="(-(test|test-sources|src|scaladoc|javadoc)\.jar|jar.asc)$"
should_include_file() { should_include_file() {
if [ "$INCLUDE_TEST_JARS" = true ]; then if [ "$INCLUDE_TEST_JARS" = true ]; then
return 0 return 0