aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/combine_derived_java_srcs.sh
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2018-05-24 02:51:14 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-24 02:52:10 -0700
commitc1fc17a67e78625415620ddb4ff5696d37e6e291 (patch)
tree41808ee354d5e96a4b48378d8fa9e07a2ec7c174 /src/combine_derived_java_srcs.sh
parent6192b8c8eb5f9164153ad63dbb99444551ba50a1 (diff)
Make //src:derived_java_srcs RBE ready
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 #5238. PiperOrigin-RevId: 197863163
Diffstat (limited to 'src/combine_derived_java_srcs.sh')
-rwxr-xr-xsrc/combine_derived_java_srcs.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/combine_derived_java_srcs.sh b/src/combine_derived_java_srcs.sh
index e28c8c7bb9..aabb0a46f0 100755
--- a/src/combine_derived_java_srcs.sh
+++ b/src/combine_derived_java_srcs.sh
@@ -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