

Ant Task サンプル CVS以後修正したファイルのリストを表示する。
ただし、今ヘッドのスペースがうまく取れてません。
cvsコミットするときに、どのファイルをどう修正したか書くときに使っています。
<target name="diff" description=""> <cvs cvsRoot=":pserver:user@localhost:c:\cvsnt" command="-q diff -u -N" output="_patch.txt"/> <copy file="_patch.txt" tofile="diff_index.txt"> <filterchain> <linecontainsregexp> <regexp pattern = "^Index: " /> </linecontainsregexp> <replacetokens begintoken="I" endtoken=":"> <token key="ndex" value=" "/> </replacetokens> </filterchain> </copy> <delete file="_patch.txt"/> </target>

