ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject proposed extension of pathconvert to be able to pull the directories from filesets
Date Tue, 27 May 2003 10:08:09 GMT

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"/>
This would be putting into the property "fileset.expanded" all directories under "somedir".
Would such a syntax be OK ?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message