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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to