开发者

ant - compare two lists

开发者 https://www.devze.com 2023-03-26 23:10 出处:网络
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 databa

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

精彩评论

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