I was wondering if
someone might be able to give me a few pointers on how to get the creation date
for each file in a filegroup. I've tried the following script snippet, but
I can't seem to get it to work.
<target
name="getfiledates">
<foreach item="File"
property="filename">
<in>
<in>
<items>
<include name="${build.dir}/logs/*.xml" />
</items>
</in>
<do>
<include name="${build.dir}/logs/*.xml" />
</items>
</in>
<do>
<echo
message="${file::get-creation-time('${filename}')}"
/>
</do>
</do>
</foreach>
</target>
Apparently, my use
of the get-creation-time function and reference to the ${filename} variable are
illegal in the same call. NAnt seems to think that ${filename} is part of
the path and reports that it cannot find part of the path.
Any help is
appreciated.
Thanks in
advance,
Greg