On Thu, May 13, 2010 at 7:14 PM, Matt Benson <gudnabr...@gmail.com> wrote:
> On May 13, 2010, at 12:48 PM, Bruno Medeiros wrote:
>
>> Hello. If I do something like this:
>>
>>        <copy todir="${destination.dir}" verbose="true" >
>>                <fileset dir="${projects.dir}/" >
>>                        <include name="*" />
>>                </fileset>
>>        </copy>
>>
>> and projects.dir has some empty directories, then those directories
>> will be copied to destination.dir .
>> Is this normal behavior? (It seems strange to me that a fileset would
>> contain empty directories)
>> And if that's the case, how can I echo the empty directories of a
>> fileset? I am familiar with this:
>>
>>        <pathconvert refid="my.fileset" property="my.files.list">
>> pathsep=","/>
>>        <echo message="${my.files.list}"/>
>>
>> But it only prints the files of the fileset, not the directories.
>>
>
> If you simply want to copy a fileset and not get empty directories, <copy>
> has an includeemptydirs attribute which defaults to true.
>
> -Matt
>

The copy code is fine and is just to exemply how I found this fileset behavior.
What I want to know is exactly what the title says, how can I echo the
empty directories of a fileset? That is possible, right?

Bruno

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to