ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Urena, Jose M" <>
Subject RE: fileset of cvs changed files
Date Sat, 01 Jan 2011 05:29:07 GMT
have you tried the built in <cvschangelog> + the xslt in
style="${ant.home}/etc/changelog.xsl" or

it needs a starting tag or branch and will report all files changed
since tag/branch was created

<cvschangelog dir="${basedir}"
   <xslt in="${}${file.separator}changelog.xml" 
          <param name="title" expression="Branch: ${cvs.branch}:
${} ChangeLog"/>
          <param name="module" expression="${}"/>
          <param name="cvsweb" expression="#"/>

-----Original Message-----
From: Antoine Levy-Lambert [] 
Sent: Friday, December 31, 2010 10:50 AM
To: Ant Users List
Subject: Re: fileset of cvs changed files

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) :

<exec executable="cvs" failonerror="true" dir="somerootdir"> <arg
value="update"/> <redirector output="includelist.txt">
<outputfilterchain> <tokenfilter> <containsregex pattern="^ U "
replace=""/> </tokenfilter> </outputfilterchain> </redirector> </exec>
<fileset dir="somerootdir"> <patternset includesfile="includelist.txt"/>

Otherwise you can write your own ant task and make this task create
either a patternset, a fileset, or a resource collection.




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
> 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: For additional
commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message