Wednesday, January 21, 2009

Force XDoclet to rebuild web.xml and jboss-web.xml

Add the following code to eclipse_project_root/xdoclet-build.xml, after XDoclet setup in Eclipse:

<target name="_xdoclet_generation_" depends="ForceRebuild,N65540,N67036"/>
<target name="ForceRebuild" description="Force XDoclet to rebuild web.xml and jboss-web.xml">
<delete file="WEB-INF/web.xml"/>
<delete file="WEB-INF/jboss-web.xml"/>
</target>

"Run XDoclet" in Eclipse does not overwrite WEB-INF/web.xml and WEB-INF/jboss-web.xml. Therefore, you'll have to remove them before running XDoclet.

No comments: