For automating the TIBCO build and deploy, read about the build-ear command and appmanage command available from the TRA.
Check the TRA documentation that you will get when you install TIBCO for details/options.
You can use this with ANT or Maven and have the script run automatically.
Also of interest might be TIBant
M