On Fri, 31 Oct 2008, Gilles Scokart <[EMAIL PROTECTED]> wrote:

> 2008/10/30 Stefan Bodewig <[EMAIL PROTECTED]>:
>>    public void hello() {
>>        TagBuilder.forProject(p)
>>            .newTag("echo")
>>            .withAttribute("message", "Hello, ${world}!")
>>            .execute();
>>    }
> 
> Some alternatives  :
> 
> public void hello() {
>       EchoTask echo = TagBuilder.create(EchoTask.class , p);
>       echo.setMessage("Hello, ${world}!");
>       echo.execute();
> }

TagBuilder uses UnknownElement which means it can resolve task
implementations, typedefs and so on.  Your example wouldn't resolve
properties, BTW.

In current svn it reads

EchoBuilder.echoMessage(p, "Hello, ${world}!");

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to