ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: problem with nested element in custom task
Date Wed, 12 Jun 2002 20:07:49 GMT
This all looks ok to me.  Does -debug yield any further details?

Are you compiling your task and using it in the same build?  I don't think
thats relevant, just curious.

1.4.6??  What is that?

----- Original Message -----
From: "Jonathan Corbin" <jonboy300@yahoo.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, June 11, 2002 5:28 PM
Subject: problem with nested element in custom task


> Hello,
>
> I'm having trouble with a custom task.  I believe I'm
> following the documentation to the letter, yet my
> custem task still will not work.
>
> Here's the relevant parts of build.xml:
>
> <taskdef name="beangen"
> classname="com.valleyrec.beangen.BeanTask"/>
>
> <target name="example">
>    <beangen destdir="${src.dir}">
>       <fileset dir="beans" includes="*.xml"/>
>    </beangen>
> </target>
>
> relevant parts of the Task:
>
> import org.apache.tools.ant.types.FileSet;
> public class BeanTask extends Task {
> ...
> public void addConfiguredFileset(FileSet set) {
> ...
> }
> }
>
> Yet, when I run ant, I get the following error:
>
> Class com.valleyrec.beangen.BeanTask doesn't support
> the nested "fileset" element
>
>
> I've tried with both 1.4.6 and the most recent nightly
> build, and I get the same result with both.  Anyone
> have any ideas?
>
> Jonboy
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message