You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Abhay Kulkarni <ab...@pune.tcs.co.in> on 2002/04/02 12:27:37 UTC

Can i include a directory path in targetfile of uptodate task

hi all!!!!

can i include a directory name in the target file of uptodate task

directory src1 is having java files and src/clas is having class files
 
<uptodate property="xmlBuild.notRequired" targetfile="${src}/clas"
   <srcfiles dir= "${src1}" includes="tempcasetoolnew.java"/>
</uptodate>

in this case will it work 
and if works with which file(s) ANT will check the timestamp of tempcasetool.java

so can anyone guide me regarding this

With Regards,
Abhay.


Re: Can i include a directory path in targetfile of uptodate task

Posted by Diane Holt <ho...@yahoo.com>.
--- Abhay Kulkarni <ab...@pune.tcs.co.in> wrote:
> can i include a directory name in the target file of uptodate task

You can -- but it'll check the timestamp of the directory itself, not any
files in it.
 
> directory src1 is having java files and src/clas is having class files
>  
> <uptodate property="xmlBuild.notRequired" targetfile="${src}/clas"
>    <srcfiles dir= "${src1}" includes="tempcasetoolnew.java"/>
> </uptodate>

If you only want to check the one .java file against its .class file, just
specify the .class file as the 'targetfile'.

Maybe you should tell us what it is you're actually wanting to do the
<uptodate> for.

Diane

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



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>