Rollforward of "Exclude the skydoc directory from bootstrap/compile.sh"
The original CL broke bootstrap on mac. I've manually verified bootstrap_distfile_test continues to pass on Mac with this change.
RELNOTES: None.
@@ -46,6 +46,14 @@ fi
DIRS=$(echo src/{java_tools/singlejar/java/com/google/devtools/build/zip,main/java,tools/xcode-common/java/com/google/devtools/build/xcode/{common,util}} third_party/java/dd_plist/java ${OUTPUT_DIR}/src)
EXCLUDE_FILES="src/main/java/com/google/devtools/build/lib/server/GrpcServerImpl.java src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/testing/*"
+# Exclude whole directories under the bazel src tree that bazel itself
+# doesn't depend on.
+EXCLUDE_DIRS="src/main/java/com/google/devtools/build/skydoc"
+for d in $EXCLUDE_DIRS ; do
+ for f in $(find $d -type f) ; do
+ EXCLUDE_FILES+=" $f"
+ done
+done
mkdir -p "${OUTPUT_DIR}/classes"
mkdir -p "${OUTPUT_DIR}/src"
