开发者

ant - compare two lists

How to compare two lists in ant? Basically I am gett开发者_开发百科ing all the message_id's from the database for all my id's and want to compare them to the same id's after some messages in database are deleted.


A very simple one assuming the lists are exactly identical in num of lines, charcters, whitespace etc., this would yield a match, else the property will not be set.

<condition property="comp" value="the files match">   
<filesmatch file1="a.txt" file2="b.txt"/> 
</condition> 

<echo> !!!! </echo>
<echo> ${comp}</echo>
<echo> !!!! </echo>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜