我有一个目录,里面有很多模块。
好像:
C:
|--Project
|----files
|----Modul1
|----FoldersinModuls
|----Modul2
|----FoldersinModuls
|----Modul3
|----FoldersinModuls
|----Modul4
|----FoldersinModuls
我需要这样的列表:Modul1,Modul2,Modul3,Modul4
但我唯一得到的是:C:\Project\files\Modul1,C:\Project\files\Modul2,C:\Project\files\Modul3,C:\Project\files\Modul4
<dirset id="list.moduls" dir="${basedir}" includes="*" excludes=".folder">
</dirset>
<pathconvert pathsep="," property="list.of.moduls" refid="list.moduls">
<mapper type="identity"/>
</pathconvert>
<echo message="${list.of.moduls}"/>