Skip to content

Commit

Permalink
fix: showcase update goal fix (#2002)
Browse files Browse the repository at this point in the history
Fixes issues when running `mvn compile -Pupdate` in showcase
  • Loading branch information
diegomarquezp authored Sep 18, 2023
1 parent 8fb0bf3 commit 47811f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions showcase/scripts/generate_components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ if [ "${replace}" == "true" ]; then
# replace contents of gapic library
gapic_component_dir="${showcase_folder}/gapic-showcase/src/main"
rm -rdf "${gapic_component_dir}/*"
cp -r "${SCRIPT_DIR}/showcase-output/gapic-showcase-output/src/main"/* "${gapic_component_dir}/"
cp -r "${SCRIPT_DIR}/output/showcase-output/gapic-showcase-output/src/main"/* "${gapic_component_dir}/"

# replace contents of proto library
proto_component_dir="${showcase_folder}/proto-gapic-showcase-v1beta1/src/main"
rm -rdf "${proto_component_dir}/*"
cp -r "${SCRIPT_DIR}/showcase-output/proto-showcase-output/src/main"/* "${proto_component_dir}/"
cp -r "${SCRIPT_DIR}/output/showcase-output/proto-showcase-output/src/main"/* "${proto_component_dir}/"

# replace contents of grpc library
grpc_component_dir="${showcase_folder}/grpc-gapic-showcase-v1beta1/src/main"
rm -rdf "${grpc_component_dir}/*"
cp -r "${SCRIPT_DIR}/showcase-output/grpc-showcase-output/src/main"/* "${grpc_component_dir}/"
cp -r "${SCRIPT_DIR}/output/showcase-output/grpc-showcase-output/src/main"/* "${grpc_component_dir}/"
fi

if [ "${perform_cleanup}" == 'true' ];then
Expand Down

0 comments on commit 47811f7

Please sign in to comment.