ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: Location in non-Task tasks
Date Wed, 13 Sep 2006 16:24:54 GMT
--- Steve Loughran <> wrote:
> Or to have a ConditionTaskBase extends Task. not
> having condition base 
> extends task causes lots of fun whenever you have
> any component that 
> takes a ref to a nested task with an addTask(Task)
> thing.

Steve, I was just reading back through the archives
and this leapt out at me.  Under what circumstances do
you have this "lots of fun"?  Does the component
mentioned implement TaskContainer?  That should be all
it needs to do, right?  Example:

  <echo file="">
public class Foo{public void
  <javac srcdir="${basedir}" includes="" />
  <taskdef name="foo" classname="Foo"
classpath="${basedir}" />
    <foo />


Buildfile: build.xml
    [javac] Compiling 1 source file
      [foo] foo

Total time: 1 second

This illustrates that there is no special handling for
the condition task; because Sequential implements
TaskContainer, <foo> is adapted with no problem.

What is different about your scenario?


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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

View raw message