Exclude test-sources.jar when $INCLUDE_TEST_JARS is FALSE
Exclude test-sources.jar when $INCLUDE_TEST_JARS is FALSE
Author: Magesh Nandakumar
Reviewers: Konstantine Karantasis Robert Yokota Arjun Satish Randall Hauch Ewen Cheslack-Postava
Closes from mageshn/KAFKA-6997
@@ -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
