ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Reason" <>
Subject RE: ANT - Deployment Tool?
Date Thu, 11 Sep 2003 23:09:06 GMT

I use it to deploy.

I build on a central machine and the scp the tarballs out the servers.
Then I scp a deploy.xml to each machine too (deploy.xml is just a
build.xml with a better name).  Then I use sshexec to stop each machine,
deploy the fresh code and start the machines.

A couple of notes:
1. I use the ant-contrib foreach task to loop through the list of
servers.  That way I don't need to duplicate code.
2. I use the system scp (using ant's exec task).  There is an ant scp
task that you can add in but it doesn't work.  Hopefully it will work in
ant 1.6.
3. There is no substitute for a shell script.  Use the exec task to kick
one off anytime you find yourself confined by the fact that ant is not
designed to be a scripting language.  The guys who make ant have a
philosophy that ANT is not a scripting language and they resist any
attempt to make it behave like one.  I'm not sure I agree with that b/c
my brain works like a shell script, so my tools should too.

All in all I am very happy with ant and the community that supports it.

-----Original Message-----
From: D Bamud [] 
Sent: Wednesday, September 10, 2003 11:47 PM
Subject: ANT - Deployment Tool?

If you go to you will see a 
"Ant wins Java Pro award" section on top which says 
ANT as "Most Valuable Java Deployment Technology". 
But I cann't see much of *deployment* features in it. 
 I found it primarily *build* tool. 
Having said that I want to use ANT as *deployment* 
tool -as well-. Could someone give some pointers on that.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message