Brock, can you go ahead and dump this in to JIRA? Also, would the xwork-xdoclet jar exist in XWork or in XDoclet?
-Pat ----- Original Message ----- From: "Brock Bulger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 22, 2003 3:28 PM Subject: [OS-webwork] xdoclet module There was interest earlier on the list for an XDoclet module to automatically generate the XWork *-validation.xml files. I've put together a module that you can use in your XWork/WebWork2 projects. The attached zip file contains the module jar file, an example class marked up with tags and the generated validation.xml file. Here is an example of the tag usage: /** * @xwork.field name="created" * @xwork.field-validator.required message="created is a required field." * @xwork.field-validator.date-range * min="12-22-2002" * max="12-25-2002" * message="The date must be between 12-22-2002 and 12-25-2002." */ private Date created; To add this to your build process add the following task (or similar) to your build.xml file: <target name="generate" depends="setenv"> <taskdef name="xworkdoclet" classname="xdoclet.modules.xwork.XWorkDocletTask" classpathref="classpath" /> <xworkdoclet destdir="${build.dest}" excludedtags="@version,@author" > <fileset dir="${java.dir}"> <include name="**/*.java"/> </fileset> <xwork /> </xworkdoclet> </target> You will need to add the xdoclet-xwork-module-1.2b4.jar file along with the xdoclet-1.2b4.jar file to your build env classpath. Feedback is appreciated. - Brock ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork