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



Reply via email to