Put scripts that you want to execute before publishing in the project's WEB-INF/bin/predeploy
If this directory does not already exist, you need to create it. Put scripts that you want to execute after publishing or republishing in the project's WEB-INF/bin/postdeploy
directory. Again, if this directory does not already exist, you need to create it. Scripts in these directories automatically execute at the appropriate time.
The predeploy output is sent to WEB-INF/logs/preDeployResults.log
The postdeploy output is sent to WEB-INF/logs/postDeployResults.log
Parent topic: Redirecting URL access through an outbound proxy server