ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: How to use UpToDate with absolute source file name (not patterns)
Date Tue, 08 May 2001 21:30:15 GMT
--- Daniel Barclay <Daniel.Barclay@digitalfocus.com> 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

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message