You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan Coast <na...@codeczar.com> on 2004/01/03 02:35:44 UTC
jelly tag problem
Hi,
I've written a tag class to use within a plugin. I copied the code from
the ChangeLog plugin as a starting point. I guess I've missed some
crucial step as when I execute the plugin I get this error:
java.lang.IllegalArgumentException: Property 'output' has no write method
at
org.apache.commons.beanutils.ConvertingWrapDynaBean.set(ConvertingWrapDynaBean.java:116)
at
org.apache.commons.jelly.DynaBeanTagSupport.setAttribute(DynaBeanTagSupport.java:99)
at
org.apache.commons.jelly.impl.DynamicBeanTag.setAttribute(DynamicBeanTag.java:178)
at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:142)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
..............
..............
The class com.codeczar.maven.foldertree.FolderTree has the same
set/getOutput methods as the ChangeLog plugin.
from plugin.jelly
<define:taglib uri="foldertree">
<define:jellybean
name="foldertree"
className="com.codeczar.maven.foldertree.FolderTree"
method="doExecute"
/>
</define:taglib>
<goal name="ft:generate">
<property name="maven.foldertree.output.dir"
value="${maven.docs.dest}/foldertree"/>
<mkdir dir="${maven.foldertree.output.dir}"/>
<foldertree:foldertree
basedir="${basedir}"
output="${maven.foldertree.output.dir}/project.js"
outputEncoding="${maven.docs.outputencoding}"/>
</goal>
Any ideas what I've done wrong?
thanks
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jelly tag problem
Posted by Nathan Coast <na...@codeczar.com>.
problem fixed by using a property name other than 'output' must've been
causing a conflict somewhere.
Nathan Coast wrote:
> Hi,
>
> I've written a tag class to use within a plugin. I copied the code from
> the ChangeLog plugin as a starting point. I guess I've missed some
> crucial step as when I execute the plugin I get this error:
>
> java.lang.IllegalArgumentException: Property 'output' has no write method
> at
> org.apache.commons.beanutils.ConvertingWrapDynaBean.set(ConvertingWrapDynaBean.java:116)
>
> at
> org.apache.commons.jelly.DynaBeanTagSupport.setAttribute(DynaBeanTagSupport.java:99)
>
> at
> org.apache.commons.jelly.impl.DynamicBeanTag.setAttribute(DynamicBeanTag.java:178)
>
> at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:142)
> at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> ..............
> ..............
>
> The class com.codeczar.maven.foldertree.FolderTree has the same
> set/getOutput methods as the ChangeLog plugin.
>
> from plugin.jelly
>
> <define:taglib uri="foldertree">
> <define:jellybean
> name="foldertree"
> className="com.codeczar.maven.foldertree.FolderTree"
> method="doExecute"
> />
> </define:taglib>
>
> <goal name="ft:generate">
> <property name="maven.foldertree.output.dir"
> value="${maven.docs.dest}/foldertree"/>
> <mkdir dir="${maven.foldertree.output.dir}"/>
>
> <foldertree:foldertree
> basedir="${basedir}"
> output="${maven.foldertree.output.dir}/project.js"
> outputEncoding="${maven.docs.outputencoding}"/>
> </goal>
>
> Any ideas what I've done wrong?
>
> thanks
> Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org