• Post Reply Bookmark Topic Watch Topic
  • New Topic

tag with xdoclet

 
Urs Wagner
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know it is a xdoclet question. I hope someone can help me.
I use the xdoclet to generate the tld file. Unforturnately I have
only the content

<taglib>

<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>hext</short-name>

</taglib>

The Tag file entry is not generated in? Is there a good way to debug the xdoclet generation?

Thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm... can you post the <webdoclet> section from your build.xml? I haven't used XDoclet to generate a taglib before (mostly just EJBs), but it sounds like it can't find the files needed - and having something slightly wrong in the fileset is the most likely cause I can think of...
 
Urs Wagner
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<target name="web.doclet" depends="init">
<taskdef name="webdoclet"
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdoclet.class.path"/>

<webdoclet destdir="${build.dir}/WEB-INF"
mergedir="${xdoclet.merge.dir}/web">

<fileset dir="${web.dir}" includes="**/*Base.java" />
<fileset dir="${web.dir}" includes="**/*Filter.java" />
<fileset dir="${web.dir}" includes="**/*Servlet.java" />
<fileset dir="${web.dir}" includes="**/*Tag.java" />

<jsptaglib validatexml="true"
filename="hext.tld"
shortname="hext" />

<deploymentdescriptor>
<taglib
uri="hext"
location="/WEB-INF/hext.tld" />
</deploymentdescriptor>
<jbosswebxml />
</webdoclet>
</target>
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing that looks suspicious to me is this section:


Is your Java source code really under the directory defined as ${web.dir}? I know it's not standardized or anything, but I usually put source under something like ${src.dir}, and let ${web.dir} contain html, jsps, etc.
 
Urs Wagner
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank I changed there is not effect. Perhaps could You post a complete build.xml? I could work then work with Yours.
I am trying it since a long time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!