You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/17 09:18:44 UTC

[GitHub] [arrow] kszucs commented on a change in pull request #10329: [Packaging][Java] Improve JNI jars build [WIP]

kszucs commented on a change in pull request #10329:
URL: https://github.com/apache/arrow/pull/10329#discussion_r633367479



##########
File path: ci/scripts/java_jni_build.sh
##########
@@ -21,21 +21,20 @@ set -e
 
 arrow_dir=${1}
 cpp_build_dir=${2}
-copy_jar_to_distribution_folder=${3:-true}
 java_dir=${arrow_dir}/java
 
 export ARROW_TEST_DATA=${arrow_dir}/testing/data
 
 pushd $java_dir
-  # build the entire project
-  mvn clean install -DskipTests -P arrow-jni -Darrow.cpp.build.dir=$cpp_build_dir
-  # test jars that have cpp dependencies
-  mvn test -P arrow-jni -pl adapter/orc,gandiva,dataset -Dgandiva.cpp.build.dir=$cpp_build_dir
 
-  if [[ $copy_jar_to_distribution_folder ]] ; then
-    # copy the jars that has cpp dependencies to distribution folder
-    find gandiva/target/ -name "*.jar" -not -name "*tests*" -exec cp  {} $cpp_build_dir \;
-    find adapter/orc/target/ -name "*.jar" -not -name "*tests*" -exec cp  {} $cpp_build_dir \;
-    find dataset/target/ -name "*.jar" -not -name "*tests*" -exec cp  {} $cpp_build_dir \;
-  fi
+# build the entire project
+mvn clean install -DskipTests -P arrow-jni -Darrow.cpp.build.dir=$cpp_build_dir
+# test jars that have cpp dependencies
+mvn test -P arrow-jni -pl adapter/orc,gandiva,dataset -Dgandiva.cpp.build.dir=$cpp_build_dir
+
+# copy the jars that has cpp dependencies to distribution folder
+find gandiva/target/ -name "*.jar" -not -name "*tests*" -exec cp {} $cpp_build_dir \;
+find adapter/orc/target/ -name "*.jar" -not -name "*tests*" -exec cp {} $cpp_build_dir \;
+find dataset/target/ -name "*.jar" -not -name "*tests*" -exec cp {} $cpp_build_dir \;

Review comment:
       Thanks @anthonylouisbsb for the heads up! I'm going to incorporate it to the script!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org