Created
June 6, 2013 13:48
-
-
Save benjaminsavoy/5721626 to your computer and use it in GitHub Desktop.
debug output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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