I would like to find a way to test the contents of a fileset which has nested
selectors in it, without for instance invoking the copy task on it.
I thought of using <pathconvert> to convert the filesets into properties. The
problem there is that <pathconvert> only expands the files contained in a
fileset, not the directories. The code of the <path> datatype only pulls the
files contained in a fileset, and this should not be changed without adding new
attributes somewhere.
To get the whole fileset with directories, would it be thinkable to do the
following :
<pathconvert property="fileset.expanded" targetos="unix">
<pathelement includedirs="true">
<fileset dir="somedir">
<type type="dir"/>
</fileset>
</pathelement>
</pathconvert>
This would be putting into the property "fileset.expanded" all directories
under "somedir".
Would such a syntax be OK ?
Antoine