File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
sdk-platform-java/java-showcase/scripts Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 55
66trap cleanup ERR
77
8- readonly ROOT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) /../.."
8+ readonly ROOT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) /../../.. "
99pushd " ${ROOT_DIR} "
10- source " ${ROOT_DIR} /java-showcase/scripts/showcase_utilities.sh"
10+ source " ${ROOT_DIR} /sdk-platform-java/ java-showcase/scripts/showcase_utilities.sh"
1111
1212cleanup () {
1313 if [[ -z " ${api_def_dir} " ]]; then
5353append_showcase_to_api_defs " ${api_def_dir} "
5454
5555echo " building docker image"
56- DOCKER_BUILDKIT=1 docker build --file .cloudbuild/library_generation/library_generation.Dockerfile --iidfile image-id .
56+ DOCKER_BUILDKIT=1 docker build --file sdk-platform-java/ .cloudbuild/library_generation/library_generation.Dockerfile --iidfile image-id .
5757
5858if [[ " ${replace} " == " true" ]]; then
5959 generated_files_dir=" ${ROOT_DIR} "
6969 popd # ROOT_DIR
7070fi
7171
72+ pushd sdk-platform-java
7273GENERATOR_VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout -pl gapic-generator-java)
74+ popd sdk-platform-java
7375
7476echo " generating showcase"
7577workspace_name=" /workspace"
Original file line number Diff line number Diff line change 44
55set -oxe
66readonly SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
7- readonly ROOT_DIR=" ${SCRIPT_DIR} /../.."
7+ readonly ROOT_DIR=" ${SCRIPT_DIR} /../../.. "
88source " ${SCRIPT_DIR} /showcase_utilities.sh"
99readonly SHOWCASE_DIR=" ${SCRIPT_DIR} /.."
1010
You can’t perform that action at this time.
0 commit comments