Exactly. You would only use FTP for all destinations.

-Rob A 

> -----Original Message-----
> From: Res Pons [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, March 04, 2006 2:25 PM
> To: [email protected]
> 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" <[EMAIL PROTECTED]>
> Reply-To: "Ant Users List" <[email protected]>
> To: "Ant Users List" <[email protected]>
> 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 
> <[email protected]>; Sat, 4 Mar 2006
> 17:14:55 +0530
> X-Message-Info: JGTYoYF78jEGffegFApWCLyNe69ftwrz6QeDGaXTzEU=
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
> List-Help: <mailto:[EMAIL PROTECTED]>
> List-Post: <mailto:[email protected]>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list [email protected]
> 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: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]  > Sent: 
> Thursday, March 02, 2006 11:54 PM  > To: [email protected]  
> > 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: [EMAIL PROTECTED] 
> For  > additional commands, e-mail: [EMAIL PROTECTED]  >  >  >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> _________________________________________________________________
> 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: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to