Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 93721 invoked from network); 1 Jan 2011 20:17:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jan 2011 20:17:21 -0000 Received: (qmail 56361 invoked by uid 500); 31 Dec 2010 15:50:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 56142 invoked by uid 500); 31 Dec 2010 15:50:39 -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 56134 invoked by uid 99); 31 Dec 2010 15:50:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Dec 2010 15:50:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antoine@gmx.de designates 213.165.64.22 as permitted sender) Received: from [213.165.64.22] (HELO mail.gmx.net) (213.165.64.22) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 31 Dec 2010 15:50:31 +0000 Received: (qmail invoked by alias); 31 Dec 2010 15:50:10 -0000 Received: from unknown (EHLO [192.168.94.119]) [38.100.172.138] by mail.gmx.net (mp048) with SMTP; 31 Dec 2010 16:50:10 +0100 X-Authenticated: #22961642 X-Provags-ID: V01U2FsdGVkX1/31wRiudT3F3yzdNR3pKwqy4k0vS1Ht8CpP58wfd iDBS1utSLP4Hv6 Message-ID: <4D1DFBB2.8060803@gmx.de> Date: Fri, 31 Dec 2010 10:50:10 -0500 From: Antoine Levy-Lambert User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Ant Users List Subject: Re: fileset of cvs changed files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hello Mark, what you can do is run your cvs update using the exec task and use a nested filterchain do capture output lines with a "U" [1] and apply a regular expression to keep only the path of the file, then save this output into a file. The output file should contain a series of file relative paths in order to be used as input for the includesfile attribute of a patternset. Something like that (untested) : Otherwise you can write your own ant task and make this task create either a patternset, a fileset, or a resource collection. Regards, Antoine [1] http://www.cs.utah.edu/dept/old/texinfo/cvs/cvs_toc.html#SEC115 On 12/31/2010 8:17 AM, Mark Lybarger wrote: > i'm using ant to build a project that has been checked out from cvs. i want > to run a task that uses a fileset of all files changed from cvs. > > basically, i'm looking to run a source code formatter on the source files > and only want it to run on files that have changed from the version control. > > thanks, > -mark- > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org