From a0a79689260be76002a3058fb461e57a96e26f47 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Mon, 20 Apr 2015 09:44:08 +0000 Subject: Bazel compile.sh: prevent BUILD file to be copied in the output We should also move the output directory to bazel-something so it get excluded from the package path. -- MOS_MIGRATED_REVID=91567602 --- compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.sh b/compile.sh index c4ff9bf394..cf670a797c 100755 --- a/compile.sh +++ b/compile.sh @@ -366,8 +366,8 @@ if [ -z "${BAZEL_SKIP_JAVA_COMPILATION}" ]; then java_compilation "Bazel Java" "$DIRS" "$LIBRARY_JARS" "output" - # help files: all non java files in src/main/java. - for i in $(find src/main/java -type f -a \! -name '*.java' | sed 's|src/main/java/||'); do + # help files: all non java and BUILD files in src/main/java. + for i in $(find src/main/java -type f -a \! -name '*.java' -a \! -name 'BUILD' | sed 's|src/main/java/||'); do mkdir -p $(dirname output/classes/$i) cp src/main/java/$i output/classes/$i done -- cgit v1.2.3