ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Haynes" <m...@matthaynes.net>
Subject Re: Correct Task Behaviour
Date Wed, 17 Oct 2007 15:27:40 GMT
Thanks thats great, I can cut out a fair bit iof code from some of the tasks
I've made !

On 17/10/2007, Steve Loughran <stevel@apache.org> wrote:
>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message