Greg,
The <echo> task should look like this
:
<echo message="${file::get-creation-time(filename)}"
/>
Hope this helps,
Gert
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory A. Lusk
Sent: maandag 7 februari 2005 16:19
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Getting The Creation Date For Each File In A FilegroupI 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><items>
<include name="${build.dir}/logs/*.xml" />
</items>
</in>
<do><echo message="${file::get-creation-time('${filename}')}" />
</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