I'm having some issues with the TaglibPlugin that I hope someone can help
me with. I tried using the "example" in the coffee break introduction, but
it didn't work as JAR file referenced in the line:

<pathelement 
location="${xdoclet.plugin.install.dir}/plugins/xdoclet-plugin-command.jar"/>

Doesn't exist in the distribution. So I changed the example to just include
all the JARs in the plugin folder and it started to create a tld file.
However, how do I specify a name for the tld...? It currently creates a
file called taglib.tld, is there not a way to specify the name to use...?

My main problem is that it's not creating any tags in the file, it just
creates the header portion of the file. Here's my Ant target:

   <target name="generate-resources" depends="process-sources">
     <!-- Generate the TLD file for the tag library... -->
     <property name="xdoclet.plugin.install.dir" 
value="${libs}/xdoclet-plugins-1.0.3/" />

     <path id="xdoclet.task.classpath">
       <fileset dir="${xdoclet.plugin.install.dir}/lib" includes="**/*.jar" />
       <fileset dir="${xdoclet.plugin.install.dir}/plugins/" 
includes="**/*.jar" />
     </path>

     <taskdef name="xdoclet"
         classname="org.xdoclet.ant.XDocletTask"
      classpathref="xdoclet.task.classpath" />

     <xdoclet>
       <!-- Specifies the files that have xdoclet2 tags... -->
       <fileset dir="${src.main.java}">
         <include name="com/example/tags/*.java" />
       </fileset>

       <!-- invoke the plugin -->
       <component classname="org.xdoclet.plugin.web.TaglibPlugin"
                    destdir="${target.classes}/META-INF"
           includelisteners="false"
                 jspversion="2.0"
                displayname="Tags"
                description="Description"
              taglibversion="1.0"
                  shortname="tags"
                        uri="http://www.example.com/tags";
                   encoding="UTF-8" />
     </xdoclet>
   </target>

I've got the @jsp.tag in the class comment and @jsp.attribute tags in the
getter comments. So why am I not getting any tags in my tld...?

Cheers,

-- 
Bob Arnott


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to