--- Daniel Barclay <[EMAIL PROTECTED]> wrote:
> Can the "uptodate" task be used with an absolute file pathname for a
> source file?
>
> (I think) I want to something like this:
>
> <uptodate property="isUpToDate" targetfile=".flagfile" >
> <srcfiles dir=".">
> <include name="${sourceFile}" />
> </srcfiles>
> </uptodate>
>
> If property sourceFile is a relative name, the name works as a file
> pattern, and everything works.
>
> However, if sourceFile is an absolute pathname (on Windows, so
> starting with "C:/..."), the uptodate task doesn't work. (It
> always thinks the target file is up to date.)
>
> Can the uptodate task be used with absolute pathnames?
Try setting the "dir" attribute of <srcfiles> to the full-path leading up
to the file, then specify the filename for the <include> (or "includes").
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/