<?xml version="1.0"?>
<project name="sortlist11" default="sortlist11">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<property name="my.list" value="z,y,x,w,v,u,t" />
<property name="my.list1" `value="5,3,6,1,8,4,6" `/>
<target name="sortlist11">
<sortlist property="my.sorted.list" value="${my.list}" delimiter="," />
<sortlist property="my.sorted.list1" value="${my.list1}" delimiter="," />
<echo message="${my.sorted.list}" />
<echo message="${my.sorted.list1}" />
</target>
</project>
這裏第二回聲打印1,3,4,5,6,6,8但我如何刪除冗餘?排序以及刪除重複
我想結果爲1,3,4,5,6,8意味着沒有重新編號。請任何人幫助我預先感謝。 – picnic4u 2011-04-07 06:15:07