ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Medeiros <>
Subject How to echo the empty directories of a fileset ?
Date Thu, 13 May 2010 17:48:31 GMT
Hello. If I do something like this:

	<copy todir="${destination.dir}" verbose="true" >
		<fileset dir="${projects.dir}/" >
			<include name="*" />

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message