ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Correct Task Behaviour
Date Tue, 16 Oct 2007 12:03:54 GMT
Matthew Haynes wrote:
> Thanks for the responses.
> 
> I think my problem came from accepting the file attribute as a String and
> then converting it to a file in my code. I guess if I do something like the
> below I shall get the correct behaviour.
> 
> public void setSrcFile(File srcFile) {
> 
> ......
> 
> }

that's right. Ant will do the resolution for you. Otherwise you have to 
make some call on your project instance to do the resolution

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message