This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch branch-4.10
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/branch-4.10 by this push:
     new 9e0ecbf  Add -Dtwitter to fix auto-build
9e0ecbf is described below

commit 9e0ecbff9a2ae5cf301f0ff937fb33a7eabdfe71
Author: Enrico Olivelli <[email protected]>
AuthorDate: Sun Nov 3 11:41:48 2019 +0100

    Add -Dtwitter to fix auto-build
    
    Descriptions of the changes in this PR:
    
    
    
    ### Motivation
    
    Make bin/bookkeeper standalone work again
    
    ### Changes
    
    
    Add -Dtwitter in order to activate "Twitter" profile and build Twitter 
stats providers.
    
    
    
    
    
    Reviewers: Sijie Guo <None>
    
    This closes #2195 from eolivelli/fix/add-twitter-common
    
    (cherry picked from commit 43f8cd74fea3e97de11f4bd90532e884df375332)
    Signed-off-by: Enrico Olivelli <[email protected]>
---
 bin/common.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/common.sh b/bin/common.sh
index ea8638f..6d6e693 100755
--- a/bin/common.sh
+++ b/bin/common.sh
@@ -199,13 +199,13 @@ find_module_jar() {
     BUILT_JAR=$(find_module_jar_at ${BK_HOME}/${MODULE_PATH}/target 
${MODULE_NAME})
     if [ -z "${BUILT_JAR}" ]; then
       echo "Couldn't find module '${MODULE_NAME}' jar." >&2
-      read -p "Do you want me to run \`mvn package -DskipTests -Dstream\` for 
you ? (y|n) " answer
+      read -p "Do you want me to run \`mvn package -DskipTests -Dtwitter 
-Dstream\` for you ? (y|n) " answer
       case "${answer:0:1}" in
         y|Y )
           mkdir -p ${BK_HOME}/logs
           output="${BK_HOME}/logs/build.out"
           echo "see output at ${output} for the progress ..." >&2
-          mvn package -DskipTests -Dstream &> ${output} 
+          mvn package -DskipTests -Dtwitter -Dstream &> ${output} 
           ;;
         * )
           exit 1
@@ -242,7 +242,7 @@ add_maven_deps_to_classpath() {
   if [ ! -f ${f} ]; then
     echo "the classpath of module '${MODULE_PATH}' is not found, generating it 
..." >&2
     echo "see output at ${output} for the progress ..." >&2
-    ${MVN} -f "${BK_HOME}/${MODULE_PATH}/pom.xml" -Dstream 
dependency:build-classpath -Dmdep.outputFile="target/cached_classpath.txt" &> 
${output}
+    ${MVN} -f "${BK_HOME}/${MODULE_PATH}/pom.xml" -Dtwitter -Dstream 
dependency:build-classpath -Dmdep.outputFile="target/cached_classpath.txt" &> 
${output}
     echo "the classpath of module '${MODULE_PATH}' is generated at '${f}'." >&2
   fi
 }

Reply via email to