Forums / Craftwork / Client-side / ANT deploy script

Orkan
#1 2008-10-15 07:42
Hi guys!
Its been a while since I posted here...

Im currently working on ANT script for FTP deployment of my web projects.
With ANT I was able to make this whole process fully automated.
Heres some features of my script:

- uses SVN Kit to export latest changes from working copy within a given revision range.
By default this is: -r HEAD-1:HEAD
This export contains recently modified files only - not the whole repository ;)

- Can compress "on the fly" *.css and *.js files through yuicompressor.jar package

- With help of WinSCP it can connect to FTP server. First it makes a zip archive of all files that will be deleted/replaced, then automatically deploy new files to the server.


Well, in short this is how it works. All I need to do now, is open console window and type "ant" - without quotes, LOL :))

Why I write this? Well, I was hoping to find here someone like me, who is interested in building scripts for ANT. Maybe we can use Ant to build release / upgrade packages for Cotonti?

btw. this is the whole script: http://www.cotonti.com/datas/users/6-ant-deploy.1.0.1.zip
I included all external JARs except WinSCP and Ant itself - these should be installed separately.
Perl - the only language that looks the same before and after RSA encryption.
This post was edited by Orkan (2008-10-15 08:01, 15 years ago)
Trustmaster
#2 2008-10-15 13:27
Sounds interesting. Though, the use of it is not very clear for me: multi-site updates, per-site local/remote sync or something else? And I also have no idea how it helps to make Cotonti packages (besides what SVN/Trac does).

I'm on Linux, so no luck for WinSCP. And Windows users will hate to open the console. So, I think it would be much better if done as a crossplatform SWT/Swing app.
May the Source be with you!
Orkan
#3 2008-10-15 19:08
No, its a tool for developers only.
I wonder how do you update this site with latest changes from SVN trunk? Manually?

ps. what SVN/Trac does exactly?
Perl - the only language that looks the same before and after RSA encryption.
Trustmaster
#4 2008-10-16 00:25
Well, it's a kind of hell right now for me, because I have:
1. Local SVN trunk copy
2. A copy of trunk on localhost for work-in-progress
3. Cotonti.com which differs a bit from trunk

So it takes pain to keep them in sync.
May the Source be with you!