Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99604 invoked from network); 15 Nov 2006 19:35:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2006 19:35:38 -0000 Received: (qmail 24745 invoked by uid 500); 15 Nov 2006 19:35:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24714 invoked by uid 500); 15 Nov 2006 19:35:42 -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 24703 invoked by uid 99); 15 Nov 2006 19:35:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 11:35:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [67.104.17.130] (HELO exchg01.pro-unlimited.com) (67.104.17.130) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 11:35:29 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Ant exec find -exec problem Date: Wed, 15 Nov 2006 11:35:06 -0800 Message-ID: <55879AC51120084A8DC1A3135BA1FA4707AFE0@webemail.pro-unlimited.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ant exec find -exec problem Thread-Index: AccI61yNYQYWGVqVQimoMZHN0l/0CQAATr1g From: "Chun Ji" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org You may not put "find" in the part. =20 -----Original Message----- From: Elaine Fortin [mailto:elaine_fortin@harvard.edu] Sent: Wednesday, November 15, 2006 11:21 AM To: user@ant.apache.org Subject: Ant exec find -exec problem Importance: Low I am trying to create an Ant script to move files that are 10 days old = to a=20 backup directory. I cannot find how to do this purely in Ant, but I know that the Unix = 'find'=20 works. Ant returns the error: "[exec] /bin/find: incomplete statement" when I issue the following: This command works fine when issued from a Unix shell: find ./feeds -name myFilename* -mtime +10 -exec mv '{}' ./feeds_backup = \; How can I make this work? Thanks, Elaine --------------------------------------------------------------------- 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