Hello all! I just wrote this blog post explaining how to configure Alfresco WCM so that when clicking "Deploy", all modified web content is sent to an FTP server (for instance the server that hosts your website). Feedback is welcome! Especially if you know better ways to do things. And Happy New Year 2011! Nicolas Raoul
Calling it "error handling" would be presumptuous, I just dump everything to the standard output. But at least it might be better than silently ignoring any error.
Another small thing I fixed is the extension for the temp file, it was creating "deployment732654325txt" files where "deployment732654325.txt" was probably intended. The previous code was probably due to the File.createTempFile method's questionable habit of not including the "." character. Not that anybody cares about extensions of temp files, though…