ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: 1 Questions in ANT
Date Mon, 06 Mar 2006 19:22:48 GMT
Exactly. You would only use FTP for all destinations.

-Rob A 

> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com] 
> Sent: Saturday, March 04, 2006 2:25 PM
> To: user@ant.apache.org
> Subject: RE: 1 Questions in ANT
> 
> if I understood your question correctly, You should create a 
> separate FTP target with very flexible properties and call it 
> from other targets and pass values to it.  Each of the 
> calling targets sends a different set of values to the FTP 
> target.  In other words, don't hard code stuff in your FTP 
> target and set its properties either in other targets or in a 
> build.properties file.
> 
> ----Original Message Follows----
> From: "Karthik" <karthikn@xius.org>
> Reply-To: "Ant Users List" <user@ant.apache.org>
> To: "Ant Users List" <user@ant.apache.org>
> Subject: RE: 1 Questions in ANT
> Date: Sat, 4 Mar 2006 17:15:59 +0530
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by 
> bay0-mc3-f5.bay0.hotmail.com with Microsoft 
> SMTPSVC(6.0.3790.211); Sat, 4 Mar 2006 03:49:20 -0800
> Received: (qmail 9322 invoked by uid 500); 4 Mar 2006 11:49:16 -0000
> Received: (qmail 9311 invoked by uid 99); 4 Mar 2006 11:49:16 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org) 
> (140.211.166.49)    by 
> apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2006 03:49:16 -0800
> Received: pass (asf.osuosl.org: local policy)
> Received: from [202.144.125.181] (HELO smtp.xius.org) 
> (202.144.125.181)    
> by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2006 
> 03:49:15 -0800
> Received: from karthik ([192.168.150.185])by smtp.xius.org 
> (8.12.8/8.12.8) with SMTP id k24Bin7Z015319for 
> <user@ant.apache.org>; Sat, 4 Mar 2006
> 17:14:55 +0530
> X-Message-Info: JGTYoYF78jEGffegFApWCLyNe69ftwrz6QeDGaXTzEU=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <mailto:user-unsubscribe@ant.apache.org>
> List-Help: <mailto:user-help@ant.apache.org>
> List-Post: <mailto:user@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
> X-Spam-Check-By: apache.org
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-55076-pons32=hotmail.com@ant.apache.org
> X-OriginalArrivalTime: 04 Mar 2006 11:49:20.0866 (UTC) 
> FILETIME=[ACC68420:01C63F81]
> 
> Hi
> 
> 
>    Thx for Prompt reply.
> 
>    My Only concern Would be
> 
>    1)Use the build.xml for running targets irrespective of 
> Normal / FTP based
>      Systems  to Copy /delete files from the destination.
>      [ But we do have a DB which provides details of systems 
> in advance, and can be used to for Normal / ftp for copying
>       /deleting the files to the System ]
> 
>     For each of the Target ,Do i need to have an equivalent 
> FTP  based target ????
> 
>     Is there no solution exists.....
> 
> 
> 
> With regards
> Karthik
> 
> 
> 
> -----Original Message-----
> From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> Sent: Saturday, March 04, 2006 12:48 AM
> To: Ant Users List
> Subject: RE: 1 Questions in ANT
> 
> 
> I'm not exactly clear on your question...So you are deploying 
> something to both windows (locally) and linux (remote 
> machine). Let me offer my 2 cents.
> 
> I prefer to deploy things, regardless of the OS and 
> local/remote, in the same exact way. In other words, consider 
> using ftp (or better yet scp) to deploy in all cases, local 
> or remote. You would have to configure ftp (or ssh server) on 
> your local windows box, but there is a clear advantage to 
> this approach. You will be running the same tasks and Ant 
> will be doing the exact same thing during the deployment, 
> regardless of the destination. To facilitate this, I would 
> create a properties file for the environment that is loaded 
> for environment specific properties... like hostname, remote 
> dir, etc. To deploy to multiple environments at once, you can 
> loop over a list of environments with the ant-contrib <foreach> task.
> 
> Hope this helps.
> 
> -Rob Anderson
> 
>  > -----Original Message-----
>  > From: Karthik [mailto:karthikn@xius.org]  > Sent: 
> Thursday, March 02, 2006 11:54 PM  > To: user@ant.apache.org  
> > Subject: 1 Questions in ANT  >  > Hi form  >
>  >   I have 1 Questions
>  >
>  >   1)I have a "build.xml" file with  many normal targets,
>  >     But for LINUX - OS with same build.xml , Do i need to Add
>  > the FTP tasks for EACH of the targets
>  >     or is there an feature avaliable in ANT.
>  >
>  >     ex:-
>  >
>  >       Source OS using ANT to Copy is         : "windows"
>  >       Destination OS of each target may be   : "windows  or
>  > Linux Systems"
>  >
>  >
>  >       build.xml is as follows....
>  >
>  >       <target name="01JAN2005">
>  >   	<copy todir="${dest.dir}">
>  >       <fileset dir="${src.dir}/*"/>
>  >   	</copy>
>  >  	</target>
>  >
>  >       <target name="15JAN2005" depends="15JAN2005">
>  >     	<copy todir="${dest.dir}">
>  >     	<fileset dir="${src.dir}/*"/>
>  >     	</copy>
>  >       </target>
>  >
>  >         ----
>  >
>  >
>  >       <target name="01JAN2005" >
>  > 	  <fileset dir="${libs}">
>  > 	  <include name="**/*.jar"/>
>  > 	  </fileset>
>  > 	  <ftp server="${ftptype}"
>  > 	       remotedir="${ftpremotedir}"
>  > 	       userid="${ftpid}"
>  > 	       password="${ftppas}"
>  > 	       separator="/"
>  > 	       action="put">
>  >
>  > 	     <fileset dir="${src.dir}">
>  > 		<include name="**/*"/>
>  > 	      </fileset>
>  > 	   </ftp>
>  > 	</target>
>  >
>  >
>  >
>  >       <target name="15JAN2005" >
>  > 	  <fileset dir="${libs}">
>  > 	  <include name="**/*.jar"/>
>  > 	  </fileset>
>  > 	  <ftp server="${ftptype}"
>  > 	       remotedir="${ftpremotedir}"
>  > 	       userid="${ftpid}"
>  > 	       password="${ftppas}"
>  > 	       separator="/"
>  > 	       action="put">
>  >
>  > 	     <fileset dir="${src.dir}">
>  > 		<include name="**/*"/>
>  > 	      </fileset>
>  > 	   </ftp>
>  > 	</target>
>  >
>  >
>  > Please some body help me
>  >
>  >
>  >
>  > with regards
>  > Karthik
>  >
>  >
>  >
>  >
>  >
>  > 
> ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org 
> For  > additional commands, e-mail: user-help@ant.apache.org  >  >  >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today 
> - it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message