ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
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 Loughran        
Author: Ant in Action 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message