Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-789 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-789 Summary: I have all the necessary jsp tags in and still xdoclet will not add them to the tld file Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Apache Module Versions: 1.2.1 Assignee: xdoclet-devel (Use for new issues) Reporter: pranav butala Created: Fri, 30 Jan 2004 5:37 PM Updated: Fri, 30 Jan 2004 5:37 PM Environment: Linux Description: Following is the ant task: <property name="srcDir" value="${basedir}/src/com/conviveon/client"/> <property name="destDir" value="${basedir}/web/WEB-INF/tlds/"/> <property file="build.properties"/> <property name="xdoclet-1.2.jar" value="${basedir}/lib/xdoclet-1.2.jar"/> <property name="xdoclet-apache-module-1.2.jar" value="${basedir}/lib/xdoclet-apache-module-1.2.jar"/> <property name="xdoclet-ejb-module-1.2.jar" value="${basedir}/lib/xdoclet-ejb-module-1.2.jar"/> <property name="xdoclet-web-module-1.2.jar" value="${basedir}/lib/xdoclet-web-module-1.2.jar"/> <property name="xjavadoc-1.0.2.jar" value="${basedir}/lib/xjavadoc-1.0.2.jar"/> <property name="servlet.jar" value="${basedir}/lib/servlet.jar"/> <property name="commons-logging.jar" value="${basedir}/lib/commons-logging.jar"/> <property name="log4j.jar" value="${basedir}/lib/log4j.jar"/> <path id="compile.classpath"> <fileset dir="${basedir}/lib" includes="*.jar"/> <fileset dir="${jrun.home}/lib" includes="*.jar"/> </path> <target name="tld"> <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask"> <classpath refid="compile.classpath"/> </taskdef> <webdoclet destDir="${destDir}" verbose="true" > <fileset dir="${srcDir}/tags/"> <include name="DebudTag.java"/> </fileset> <jsptaglib filename="test.tld" shortname="tld" destdir="${destDir}" acceptAbstractClasses="false"/> </webdoclet> </target> Following is part of DebugTag: package com.conviveon.client.tags; import java.io.IOException; import java.util.Enumeration; import javax.servlet.ServletRequest; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.BodyContent; /** * This tag handler is used to debug JSP pages, it provides a view into * Application, Session, Page, and Request level variables. At runtime a * hyperlink will be displayed on the screen that can be clicked to show or * hide the debug information. * * @author dov * @created May 14, 2002 * @jsp:tag name="debug" tag-class="com.conviveon.client.tags.DebugTag" body-content="empty" */ public class DebugTag extends com.conviveon.client.tags.BaseTag { /** Description of the Field */ public static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(DebugTag.class); private String view = "all"; /** * Sets the view attribute of the DebugTag object * * @param val The new view value * @jsp:attribute name="view" * required="false" * rtexprvalue="true" * type="java.lang.String" * description="Scope of the debug information to view (all, session, request, application, or page)" */ public void setView(String val) { view = val.trim().toLowerCase(); } /** * Description of the Method * [EMAIL PROTECTED] Description of the Return Value [EMAIL PROTECTED] JspTagException Description of the Exception */ public int startTagHandler() throws JspTagException { return SKIP_BODY; } /** * end tag * [EMAIL PROTECTED] return code to control subsequent processes [EMAIL PROTECTED] JspTagException Description of the Exception */ public int endTagHandler() throws JspTagException { StringBuffer _data = new StringBuffer(); String _current = ""; int _scope = 0; if (view.equals("session")) { _scope = PageContext.SESSION_SCOPE; } if (view.equals("request")) { _scope = PageContext.REQUEST_SCOPE; } if (view.equals("application")) { _scope = PageContext.APPLICATION_SCOPE; } if (view.equals("page")) { _scope = PageContext.PAGE_SCOPE; } if (view.equals("all")) { _scope = 99; } Following is the output by running the script: [EMAIL PROTECTED] TagLibrary]$ ant tld Buildfile: build.xml tld: [webdoclet] (XDocletMain.start 47 ) Running <jsptaglib/> [webdoclet] Generating test.tld. BUILD SUCCESSFUL Total time: 7 seconds This is what test.tld looks like: [EMAIL PROTECTED] TagLibrary]$ more web/WEB-INF/tlds/test.tld <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>tld</short-name> </taglib> --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
