Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 94fb654

Browse files
committed
Also support Tomcat image.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154992246
1 parent c85f42c commit 94fb654

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/agent/format-env-appengine-vm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ ARGS="-agentpath:${CDBG_ROOT}/cdbg_java_agent.so="
3838
ARGS+="--log_dir=/var/log/app_engine"
3939
ARGS+=",--logtostderr=false"
4040

41-
# When using the Jetty image, the debugger should also read the WEB-INF/classes
42-
# and WEB-INF/lib directories. When using the OpenJDK image (which deploys a
43-
# JAR), this is not necessary.
44-
if [[ "$GAE_IMAGE_NAME" == "jetty" ]]; then
41+
# When using Jetty/Tomcat images, the debugger should also read the
42+
# WEB-INF/classes and WEB-INF/lib directories. When using the OpenJDK
43+
# image (which deploys a JAR), this is not necessary.
44+
if [[ ! -z "${RUNTIME_DIR}" ]]; then
4545
ARGS+=",--cdbg_extra_class_path=${APP_WEB_INF_DIR}/classes:${APP_WEB_INF_DIR}/lib"
4646
fi
4747

0 commit comments

Comments
 (0)