Skip to content

Instantly share code, notes, and snippets.

@benjaminsavoy
Created June 6, 2013 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminsavoy/5721626 to your computer and use it in GitHub Desktop.
Save benjaminsavoy/5721626 to your computer and use it in GitHub Desktop.
debug output
# If -Pdebug=true then we give some additional output to help stack debugging.
debug=${debug-false}
if [[ "$debug" == "true" ]]; then
echo -e "\n##### BEGIN TOMCAT7 INFO #####"
_dir=$(pwd)
cd "$app_dir/.genapp/setup_status"
for _file in *; do
echo -e "\n----- Setup status for $_file is: -----"
cat "$_file"
done
cd "$_dir"
echo -e "\n----- Context.xml file is: -----"
cat "$app_dir/server/conf/context.xml"
echo -e "\n----- Env file is: -----"
cat "$control_dir/env"
echo -e "\n----- Env_safe file is: -----"
cat "$control_dir/env_safe"
echo -e "\n----- Config file is: -----"
cat "$control_dir/config"
echo -e "\n----- Metadata file is: -----"
cat "$app_dir/.genapp/metadata.json"
echo -e "\n##### END TOMCAT7 INFO #####"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment