Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 98801 invoked from network); 6 Mar 2006 07:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Mar 2006 07:07:56 -0000 Received: (qmail 4002 invoked by uid 500); 6 Mar 2006 07:08:38 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3960 invoked by uid 500); 6 Mar 2006 07:08:38 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 3949 invoked by uid 99); 6 Mar 2006 07:08:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Mar 2006 23:08:38 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [216.148.227.151] (HELO rwcrmhc11.comcast.net) (216.148.227.151) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Mar 2006 23:08:36 -0800 Received: from wcx1000 (c-71-198-217-54.hsd1.ca.comcast.net[71.198.217.54]) by comcast.net (rwcrmhc11) with SMTP id <20060306070814m11009rap3e>; Mon, 6 Mar 2006 07:08:14 +0000 From: "bill/wilandra" To: "'Ant Users List'" Subject: RE: ANT FTP TASK Date: Sun, 5 Mar 2006 23:08:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: Thread-Index: AcZA5ohMrjYCMOekRt6gav4V4Ee9fQABcNtA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060306070837.4FCC010FB003@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Having never looked at the code, but, applying a little logic to the problem I would ask if there is a Fileset class and if that class has an addFile method? Then you should be able to see how to make a Fileset instance and add File objects to it. Have you tried looking at the API doc to see if you can find the Fileset class and go from there? HTH Bill -----Original Message----- From: Karthik [mailto:karthikn@xius.org] Sent: Sunday, March 05, 2006 10:20 PM To: user@ant.apache.org Subject: ANT FTP TASK Hi form I found this piece of code on the web and am struck with the API 1)Would like to know how to add files to "addFileSet" for thr code below. public void setCopXinTask(String fromSrc,String toDirName) { Project project = createProject(); FTP ftp = new FTP(); ftp.setServer("192.168.150.120"); ftp.setRemotedir("/home/projectt/karthik"); ftp.setPort(22); ftp.setUserid("projectt"); ftp.setPassword("abc1234"); //?? how to add files from source to filset ftp.addFileset( ???? ); ftp.execute(); } Please somebody 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