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 Wed, 17 Oct 2007 10:17:12 GMT
Matthew Haynes wrote:
> That's great, I had made the mistake of assuming that the setSomething
> methods needed a String.
> 
> Does resolve other common types, DateFomat, int, etc ?

Try them and see. The general rule is

  -anything that takes a string constructor will be constructed before 
being added
  -there is special support for various common Java or ant types: file, 
path, reference
  -you can add your own types if you give them a string constructor
  -if you overload a setter with a complex type and a string, the 
complex one gets picked

-steve



-- 
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