You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Derek Alexander <D....@lse.ac.uk> on 2007/09/24 17:12:52 UTC

A bug with DispatchTask?

Seems to be a bug in DispatchTask, or am I doing something wrong?

package foo;
import org.apache.tools.ant.dispatch.DispatchTask;
public class Baa extends DispatchTask {
    public void beep() throws BuildException {
       ...
    }
    ...
}


    <taskdef name="baa" classname="foo.Baa"/>
    ...
    <target name="doBeep">
        <baa action="beep"/>
    </target>

Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Detected Java version: 1.4 in: /usr/java/j2sdk1.4.2_09/jre
Detected OS: Linux
...
BUILD FAILED
/home/ant/deploy/cluster/build.xml:49: No public getAction() in class
org.apache.tools.ant.UnknownElement
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:96)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)

-- 
View this message in context: http://www.nabble.com/A-bug-with-DispatchTask--tf4509766.html#a12861807
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: A bug with DispatchTask?

Posted by Derek Alexander <D....@lse.ac.uk>.

Derek Alexander wrote:
> 
> Seems to be a bug in DispatchTask, or am I doing something wrong?
> 
No bug. I'd renamed the action method but not updated the value of the
action attribute.
The error message shown could perhaps be more useful though.

D.

-- 
View this message in context: http://www.nabble.com/A-bug-with-DispatchTask--tf4509766.html#a12875941
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org