Skip to content

Commit fcffa61

Browse files
committed
macOS
1 parent aa0b357 commit fcffa61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/scripts/java_build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ mkdir -p "${build_dir}/arrow-format"
4444
cp -r "${source_dir}/arrow-format" "${build_dir}"
4545
cp -r "${source_dir}/dev" "${build_dir}"
4646

47-
for source_root in $(find "${source_dir}" -not \( -path "${source_dir}"/build -prune \) -type f -name pom.xml -exec realpath -s --relative-to="${source_dir}" '{}' \; |
47+
# Instead of hardcoding the list of directories to copy, find pom.xml and then
48+
# crawl back up to the top. GNU realpath has --relative-to but this does not
49+
# work on macOS
50+
for source_root in $(find "${source_dir}" -not \( -path "${source_dir}"/build -prune \) -type f -name pom.xml -exec python -c "import os.path; print(os.path.relpath('{}', '${source_dir}'))" \; |
4851
awk -F/ '{print $1}' |
4952
sort -u); do
5053
cp -r "${source_dir}/${source_root}" "${build_dir}"

0 commit comments

Comments
 (0)