|
[
Permalink
| « Hide
]
Matt Raible added a comment - 26/Apr/04 03:41 AM
Attaching patch for classes currently in XDoclet
New StrutsFormSubTask without EJB Dependency
This patch is probably not as clean as it should be. It breaks the ejbdoclet task when running "ant samples". However, it does everything I need, since I don't use EJBs.
I've cleaned this up and now both the <strutsform> subtask of <ejbdoclet> will work, as well as I created a new <actionform> taghandler (and namespace) for this standalone stuff.
Rather than continuing to submit patches, please let me know when you're interested in committing this stuff - and I'll supply a patch then. I also cleaned up all the deprecation errors in the apache module. Here's what the task looks like now in my build.xml. <taskdef name="strutsdoclet" classname="xdoclet.modules.apache.struts.StrutsDocletTask" classpathref="xdoclet.classpath"/> <!-- generate struts forms --> <strutsdoclet destdir="${build.dir}/web/gen" excludedtags="@version,@author" addedtags="@xdoclet-generated at ${TODAY}" force="${xdoclet.force}"> <fileset dir="src/dao"/> <!-- generate struts forms --> <actionform destdir="${build.dir}/web/gen" templateFile="metadata/templates/struts_form.xdt"> <packageSubstitution packages="model" substituteWith="webapp.form"/> </actionform> </strutsdoclet> CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xdoclet/samples/src/java/test/hibernate Name.java,1.1,1.2 Modifications for CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources struts_form.xdt,NONE,1.1 Fix for CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xdoclet/modules/apache/src/xdoclet/modules/apache/struts ActionFormSubTask.java,NONE,1.1 ActionFormTagsHandler.java,NONE,1.1 Fix for CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xdoclet/samples build.xml,1.44,1.45 Modifications for CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xdoclet/modules/apache/src/xdoclet/modules/apache/struts/ejb XDocletModulesApacheStrutsEjbMessages.java,1.4,1.5 Fix for |
|||||||||||||||||||||||||||||||||||||||||||||||||