From user-return-70652-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Jul 08 14:45:32 2010 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40815 invoked from network); 8 Jul 2010 14:45:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 14:45:32 -0000 Received: (qmail 37560 invoked by uid 500); 8 Jul 2010 14:45:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 37435 invoked by uid 500); 8 Jul 2010 14:45:30 -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 37427 invoked by uid 99); 8 Jul 2010 14:45:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 14:45:30 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Brian.Dick@fmr.com designates 192.223.198.26 as permitted sender) Received: from [192.223.198.26] (HELO maillnx-us111.fmr.com) (192.223.198.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 14:45:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fmr.com; i=Brian.Dick@fmr.com; l=2161; q=dns/txt; s=2009-03-17; t=1278600323; x=1310136323; h=x-tm-imss-message-id:x-mimeole:content-class: mime-version:content-type:content-transfer-encoding: subject:date:message-id:x-ms-has-attach: x-ms-tnef-correlator:thread-topic:thread-index:from:to: x-originalarrivaltime:x-filenames; z=X-TM-IMSS-Message-ID:<5fb6e12e000484cc@msgdaliv02vwin.fm r.com>|X-MimeOLE:=20Produced=20By=20Microsoft=20Exchange =20V6.0.6619.12|content-class:=20urn:content-classes:mess age|MIME-Version:=201.0|Content-Type:=20text/plain=3B=0D =0A=09charset=3D"us-ascii"|Content-Transfer-Encoding:=20q uoted-printable|Subject:=20RE:=20File=20list=20from=20rem ote=20server|Date:=20Thu,=208=20Jul=202010=2010:43:39=20- 0400|Message-ID:=20<0CAB3E06F52A6846BA58880E62F40D3709897 1FE@MSGBOSCLP2WIN.DMN1.FMR.COM>|X-MS-Has-Attach:=20 |X-MS-TNEF-Correlator:=20|Thread-Topic:=20File=20list=20f rom=20remote=20server|Thread-Index:=20AcsY1HpyAYev7hodT4W RvfFjhGdBpAF1mWwA|From:=20"Dick,=20Brian=20E."=20|To:=20"Ant=20Users=20List"=20|X-OriginalArrivalTime:=2008=20Jul=202010=2014:44:1 1.0133=20(UTC)=20FILETIME=3D[07077AD0:01CB1EAC] |X-filenames:=20None; bh=jeh29S1fX6Gw//l0lakvYjuJfnuO65vGyQRc2QJIQ24=; b=hvCMVgZo2JdEM+D1rhj1MLWAFlJKTogrQ0e4m1uZ1rtJCtoURoo3dXW1 nOOf4ND1SlWyq+QW6MK1LfGBOuXc7x1tWaC5ZZzYkLUl7xNH3X0jac3Ds WwGO97wvDT3afcyWJUp9SK9DD8hj0IgbdZaH71+8Bd4W8vDoFJW9lWnAn s=; X-filenames: None Received: from msgmrosm02win.dmn1.fmr.com ([172.26.31.170]) by maillnx-us111.fmr.com with SMTP; 08 Jul 2010 10:45:02 -0400 Received: from msgdaliv02vwin.FMR.COM (10.141.14.89) by MSGMROSM02WIN.dmn1.fmr.com (Sigaba Gateway v4.1) with ESMTP id 54966496; Thu, 08 Jul 2010 10:45:02 -0400 X-TM-IMSS-Message-ID:<5fb6e12e000484cc@msgdaliv02vwin.fmr.com> Received: from MSGMROIM01WIN.DMN1.FMR.COM ([172.26.2.194]) by msgdaliv02vwin.fmr.com ([10.141.14.89]) with ESMTP (TREND IMSS SMTP Service 7.0) id 5fb6e12e000484cc ; Thu, 8 Jul 2010 10:45:01 -0400 Received: from MSGMMKIM01WIN.DMN1.FMR.COM ([172.25.108.46]) by MSGMROIM01WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.7381); Thu, 8 Jul 2010 10:44:57 -0400 Received: from msgbosclp2win.DMN1.FMR.COM ([10.46.17.21]) by MSGMMKIM01WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.7381); Thu, 8 Jul 2010 10:44:11 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: File list from remote server Date: Thu, 8 Jul 2010 10:43:39 -0400 Message-ID: <0CAB3E06F52A6846BA58880E62F40D37098971FE@MSGBOSCLP2WIN.DMN1.FMR.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: File list from remote server Thread-Index: AcsY1HpyAYev7hodT4WRvfFjhGdBpAF1mWwA From: "Dick, Brian E." To: "Ant Users List" X-OriginalArrivalTime: 08 Jul 2010 14:44:11.0133 (UTC) FILETIME=[07077AD0:01CB1EAC] X-Virus-Checked: Checked by ClamAV on apache.org So, I have it close. See my example below.=20 The only issue is that we currently use a globally defined patternset and reference it when we retrieve a remote file list. I can't figure out how to replace the hardcoded selectors in the example with a reference to a globally defined patternset, or something similar. Too bad the restrict resource selector doesn't allow for that. Brian E. Dick | Principal Software Engineer Developer | FIDELITY INSTITUTIONAL 100 Salem Street Smithfield, RI 02917 401.292.6875 brian.dick@fmr.com > _____________________________________________=20 > From: Dick, Brian E. =20 > Sent: Thursday, July 01, 2010 12:19 AM > To: Ant Users List > Subject: File list from remote server >=20 > Hi, >=20 > The ftp protocol is no longer allowed in our computing environment, > because ftp uses clear text usernames/passwords. So, I have to rewrite > our ant scripts to use the scp task rather than the ftp task. However, > there are two attributes of the ftp task that I cannot seem to > replicate with scp. First, we use depends=3D"yes" to avoid = transferring > files that have not changed. Second, we use action=3D"list" in > conjunction with a fileset to get a filtered list of files from the > remote server. >=20 > Can anyone suggest how the function of these two ftp attributes can be > replicated with scp or some other ant tasks? >=20 > Later, > Brian --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org