在ant里面将字符串split的方法:

<taskdef resource="net/sf/antcontrib/antlib.xml">
  <classpath>
   <pathelement location="D:\WorkTool\ant\lib\ant-contrib-1.0b3.jar"/>  <!--classpath不指定貌似也不会报错,神奇-->
  </classpath>
</taskdef>

<target name="test">
  <echo message="The first five letters of the alphabet are:"/>
  <for list="${reportURL}" param="letter">
   <sequential>
    <echo>Letter @{letter}</echo>
   </sequential>
  </for>
</target>
</project>

posted on 2012-02-27 11:33  lightideal  阅读(653)  评论(0编辑  收藏  举报

导航