Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 3697 invoked from network); 31 Oct 2007 22:56:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 22:56:28 -0000 Received: (qmail 9576 invoked by uid 500); 31 Oct 2007 22:56:11 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 9554 invoked by uid 500); 31 Oct 2007 22:56:11 -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 9543 invoked by uid 99); 31 Oct 2007 22:56:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 15:56:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qazwart@gmail.com designates 209.85.128.190 as permitted sender) Received: from [209.85.128.190] (HELO fk-out-0910.google.com) (209.85.128.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 22:56:15 +0000 Received: by fk-out-0910.google.com with SMTP id 18so343197fks for ; Wed, 31 Oct 2007 15:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=1j5s3HpEdDgjNztHQ26deSlz5NmQo07A+zK52HAK+Ck=; b=Iaq+0cVbVxLoeEEic/mMGUqEkgP6xUJSRudJeHm5SzIuHwpBSTNpUvLIl5hX+80aPB39cuKHyqlkvxqMRulcyOxE7Yf2duYLkYCR2AcsNs4VpJhambXO071Fys/RdbfG/GLfIE2FXByzVKaWZOhjL8rArNPX0CDNgieLmuaj7u8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ezWzNTC0srgJXqtCPYixsku49PfzlvzRI8lf5+gSSlDrOYY/KKzsUfII3bybhfcQjT8Yz+DXOKksHnY2P7LuHrD/31Kio4x8DWfsKmvcf5+Cg31E5/wUKuOsTldcmg+3DkJ89Tt3BQfqH9JPyp6F0Y3Rbc7IB4lv51SdBf3h/vE= Received: by 10.82.114.3 with SMTP id m3mr5058279buc.1193871352466; Wed, 31 Oct 2007 15:55:52 -0700 (PDT) Received: by 10.82.175.6 with HTTP; Wed, 31 Oct 2007 15:55:52 -0700 (PDT) Message-ID: Date: Wed, 31 Oct 2007 18:55:52 -0400 From: "David Weintraub" To: "Ant Users List" Subject: Re: How do I filter a file of files In-Reply-To: <0CAB3E06F52A6846BA58880E62F40D37C77C59@MSGBOSCLP2WIN.DMN1.FMR.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0CAB3E06F52A6846BA58880E62F40D37C77C47@MSGBOSCLP2WIN.DMN1.FMR.COM> <0CAB3E06F52A6846BA58880E62F40D37C77C59@MSGBOSCLP2WIN.DMN1.FMR.COM> X-Virus-Checked: Checked by ClamAV on apache.org One of the optional tasks in the task. This does a secure FTP as an ant task. I understand that there is some problem with IBM systems, but you'll have to look in the archive. See . You will need jsch.jar 0.1.29 or later for to work. On 10/31/07, Dick, Brian E. wrote: > Let me state my problem, rather than my idea of a solution. Maybe that > will pique your interest. > > I have a macrodef in my current build that uses the ftp task to get a > list of files from a remote server. The macrodef has attributes for > specifying the remotedir and patternset for the ftp task. Something like > the following. > > > > > > ... > remotedir="@{remotedir}" > > > > > > > > > > Our company is implementing a policy to allow only secure shell access > to our servers. I can't use the ftp task anymore. How can I achieve this > functionality using secure shell access within Ant? > > -----Original Message----- > From: Dick, Brian E. > Sent: Thursday, October 25, 2007 4:12 PM > To: Ant Users List > Subject: How do I filter a file of files > > I have a file of files that I need to load into a property and filter > according to expressions similar to the "include" and "exclude" elements > of a patternset. > > For example, assume I have a file, fof.dat, containing the following. > > /export/home/myaccount/myapp/bin/pgm1 > /export/home/myaccount/myapp/bin/pgm2 > /export/home/myaccount/myapp/config/cfg1 > /export/home/myaccount/myapp/lib/lib1.jar > /export/home/myaccount/myapp/lib/lib2.jar > /export/home/myaccount/myapp/lib/lib3.jar > > I would like code something like the following. > > > > > > > > > > > > > > After the loadfile task, the bin_file_list property would contain the > following. > > /export/home/myaccount/myapp/bin/pgm1 > /export/home/myaccount/myapp/bin/pgm2 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > -- -- David Weintraub qazwart@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org