ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Taylor <donald_l_taylor...@yahoo.com>
Subject RE: using ant in the deploy process
Date Wed, 19 Sep 2001 15:30:02 GMT
Yup. This works well for me because my server names are static and my
set of servers is static (for the most part). I created a deploy task
for each server, so I could single out a server for deployment if I
need to.

-- Don

--- "Pugh, Eric" <EPugh@MuseumCompany.com> wrote:
> How do you copy to multiple servers though?  Just run the copy task a
> bunch
> of times?  Or can you use a fileset for the todir?
> 
> Eric
> 
> -----Original Message-----
> From: Don Taylor [mailto:donald_l_taylor_jr@yahoo.com]
> Sent: Wednesday, September 19, 2001 7:45 AM
> To: ant-user@jakarta.apache.org
> Subject: RE: using ant in the deploy process
> 
> 
> Or even the humble copy task? That's how I deploy to multiple
> servers!
> :)
> 
> -- Don
> 
> --- Jason Rogers <jason.rogers@tumbleweed.com> wrote:
> > Would the FTP task not meet your needs?
> > 
> > -----Original Message-----
> > From: Anthony Rodriguez [mailto:Anthony@WeddingChannel.com]
> > Sent: Tuesday, September 18, 2001 2:57 PM
> > To: ant-user@jakarta.apache.org
> > Subject: using ant in the deploy process
> > 
> > 
> > 
> > I've been using Ant to optimize my build and deploy process.  So
> far,
> > the
> > build process is working great with Ant.  However, I've run into
> some
> > trouble with the deploy part.  In all the documentation, it's very
> > clear
> > that Ant is a java-based BUILD tool.  However, after the build is
> > done, does
> > Ant have the tools in order to deploy?  Or are there other tools,
> > possibly
> > from the Jakarta project, that are better equipped to handle
> deploys?
> > 
> > The specific reason I ask is that I need to deploy to multiple
> boxes.
> >  After
> > my build is done, I have a cabinet (folder) with all the java
> classes
> > and
> > asp for my site.  Then for the deploy, I need to deploy this
> cabinet
> > to
> > several boxes.  Is there a way to deploy to several machines using
> > ant?
> > Since ant has no for, while, or array constructs, I figured it was
> > not
> > possible.  But then I saw the script task and in there one can use
> > the bsf
> > supported scripting language of choice.  However, I didn't see a
> lot
> > in the
> > way of documentation for how to write script tasks.  So would
> > something like
> > this be possible?
> > 
> > deploy.xml 
> > ---------------- 
> > (snippets)..... 
> > 
> > <target name="deploy_sites"> 
> >   <script language="perl"> 
> >         @sites=qw/site1 site2 site3/; 
> >         foreach $site (@sites) { 
> >         
> >                 <antcall target="deploy"> 
> >                         <param name="site" value="$site"/> 
> >                 </antcall> 
> >         
> >         } 
> >   </script> 
> > </target> 
> > 
> > <target name="deploy"> 
> >         <!-- This target would copy,ftp,etc the files to the site
> > machine
> > --> 
> > </target> 
> > 
> > <target name="main" depends="deploy_sites"> 
> > .... 
> > 
> > This is what I would like to do, deploy to multiple boxes.  Has
> > anyone done
> > these types of deploys using ant?  Any help would be greatly
> > appreciated.
> > 
> > -Anthony 
> > 
> > P.S. - I used Perl in this example because it was the scripting
> > language I
> > am most familiar with.  If this can be done better by another
> > scripting
> > language (JavaScript, netrexx, etc) then please let me know.
> > 
> > 
> 
> 
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/


__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

Mime
View raw message