Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 77070 invoked by uid 500); 19 Sep 2001 15:33:55 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 77051 invoked from network); 19 Sep 2001 15:33:55 -0000 Message-ID: <8A6F09AD8049134282148A453CB93B9AD4193B@roc-mail1.xelus.com> From: "Schaefer, Don" To: "'ant-user@jakarta.apache.org'" Subject: RE: using ant in the deploy process Date: Wed, 19 Sep 2001 11:29:57 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1411F.F01FC4D0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1411F.F01FC4D0 Content-Type: text/plain; charset="iso-8859-1" We use ant for our deployments. It works very well. FTP is fine. Remember that you can also pull a new revision from a remote location. We use filesets and naming patterns combined with jar to create our images. We have also made our update available internally on a webserver for retrieval as well. -----Original Message----- From: Pugh, Eric [mailto:EPugh@MuseumCompany.com] Sent: Wednesday, September 19, 2001 8:49 AM To: 'ant-user@jakarta.apache.org' Subject: RE: using ant in the deploy process 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 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)..... > > > > > > > > > > > .... > > 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/ ------_=_NextPart_001_01C1411F.F01FC4D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: using ant in the deploy process

We use ant for our deployments.  It works very = well.  FTP is fine.  Remember that you can also pull a new = revision from a remote location.  We use filesets and naming = patterns combined with jar to create our images.  We have also = made our update available internally on a webserver for retrieval as = well.


-----Original Message-----
From: Pugh, Eric [mailto:EPugh@MuseumCompany.com]
Sent: Wednesday, September 19, 2001 8:49 AM
To: 'ant-user@jakarta.apache.org'
Subject: RE: using ant in the deploy process


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@y= ahoo.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=3D"deploy_sites"> =
>   <script = language=3D"perl">
>         = @sites=3Dqw/site1 site2 site3/;
>         = foreach $site (@sites) {
>         =
>          = ;       <antcall = target=3D"deploy">
>          = ;            = ;   <param name=3D"site" = value=3D"$site"/>
>          = ;       </antcall>
>         =
>         = }
>   </script>
> </target>
>
> <target name=3D"deploy"> =
>         = <!-- This target would copy,ftp,etc the files to the site
> machine
> -->
> </target>
>
> <target name=3D"main" = depends=3D"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= /

------_=_NextPart_001_01C1411F.F01FC4D0--