Hi,
i have some major problems getting the portletdoclet to work. Seems like i am the first one using that feature. Searching the net did not return many results :(
My problem is that the portletdoclet task does not generate a portlet.xml
with my portlet definition. THe portlet.xml file is generated, but it is empty.
If i add a mergedir in the protletdoc, e.g. with a protlet-custom-window-states.xml
the content of the file is added properly to the portlet.xml but i am completely
missing the <portlet> tag. Any help is really apppreciated. Are there any
junit tests for the portletdoclet task ?? My build task looks like:
<property name="dest.dir" value="amitesPortlet/WEB-INF" />
<property name="java.src.dir" value="${dest.dir}/src/java/de/amites/web" />
<property name="merge.dir" value="xdoclet-merge" />
<taskdef name="portletdoclet" classname="xdoclet.modules.portlet.PortletDocletTask"
classpath="${xdoclet.jar}:${xdoclet.portlet.jar}:${xjavadoc.jar}:${commons-collections.jar}:${commons-logging.jar}:${portlet.jar}"/>
<portletdoclet destdir="${dest.dir}" verbose="false" mergedir="${merge.dir}" force="true">
<fileset dir="C:/">
<include name="*Portlet.java"/>
</fileset>
<portletxml />
</portletdoclet>
The StrutsPortlet.java file in C:\ looks like
package de.amites.web;
import java.io.IOException;
import javax.portlet.GenericPortlet; import javax.portlet.PortletException; import javax.portlet.PortletSession; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse;
/**
* @portlet.portlet name="amites_struts"
* description="Amites Portlet Test Struts"
* display-name="Amites Portlet Test Struts"
*
* @portlet.portlet-init-param description=""
* name="edit-action"
* value="/amites_struts/edit"
*
* @portlet.supports mime-type="text/html" modes="EDIT,HELP"
*
* @portlet.portlet-info title="Amites Struts" *
*/
public class TestStrutsPortlet extends GenericPortlet {
public void doView(RenderRequest req, RenderResponse res) throws IOException, PortletException { System.out.println("teststruts portlet"); }
}
So what is wrong, and why is my portlet not generated ???
thanks in advance, Andreas
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user