mirror of https://github.com/apache/kafka.git
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:
parent
c238e14ac6
commit
e5492d7726
|
@ -32,7 +32,7 @@ if [ -z "$INCLUDE_TEST_JARS" ]; then
|
|||
fi
|
||||
|
||||
# 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() {
|
||||
if [ "$INCLUDE_TEST_JARS" = true ]; then
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue