Skip to content

Commit

Permalink
Make //src:derived_java_srcs RBE ready
Browse files Browse the repository at this point in the history
If ${JAVABASE} is a relative path prefix it with ${PWD}
but if it's an absolute path just use that i.e. when
specified via --javabase.

Closes bazelbuild#5238.

PiperOrigin-RevId: 197863163
  • Loading branch information
buchgr authored and Copybara-Service committed May 24, 2018
1 parent 6192b8c commit c1fc17a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/combine_derived_java_srcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ set -eu

# Combine src jars to a single archive containing all the source files.

JAVABASE="${PWD}/$1"

case $1 in
"/"*) JAVABASE="$1" ;;
*) JAVABASE="${PWD}/$1" ;;
esac
shift
OUTPUT="${PWD}/$1"
shift
Expand Down

0 comments on commit c1fc17a

Please sign in to comment.