User: rinkrank
Date: 02/05/30 11:38:57
Modified: modules/apache/src/xdoclet/modules/apache/struts/ejb
StrutsFormSubTask.java
Log:
Refactoring which removes redundant subtask names (both in @xdoclet.subtask
name="blabla" and in code)
-Removed the static SUBTASK_NAME and overridden getSubTaskName() from all SubTasks
(it's final now in SubTask)
-DocletTask stores all subtask names in a Class->String Map, using the name from
xdoclet.xml (which in turn comes from @xdoclet.subtask name="blabla"
-All references to SomeSubTask.SUBTASK_NAME replaced by a call to
DocletTask.getSubTaskName(Class subTaskClass)
-Improved error reporting in DocletTask
-Reverted the ejbjarxml/webxml to deploymentdescriptor
-Added omit.docs flag in xdoclet/build.xml set it to true in ANT_OPTS for faster
build
Revision Changes Path
1.3 +1 -13
xdoclet/modules/apache/src/xdoclet/modules/apache/struts/ejb/StrutsFormSubTask.java
Index: StrutsFormSubTask.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/ejb/StrutsFormSubTask.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- StrutsFormSubTask.java 28 May 2002 22:35:23 -0000 1.2
+++ StrutsFormSubTask.java 30 May 2002 18:38:57 -0000 1.3
@@ -28,12 +28,10 @@
* @author Dmitri Colebatch ([EMAIL PROTECTED])
* @created September 3, 2001
* @xdoclet:subtask display-name="Struts Form" name="strutsform"
parent="xdoclet.modules.ejb.EjbDocletTask"
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class StrutsFormSubTask extends AbstractEjbCodeGeneratorSubTask
{
- public final static String SUBTASK_NAME = "strutsForm";
-
/**
* The default template file - struts_form.xdt.
*/
@@ -67,16 +65,6 @@
public XTag getCurrentFormTag()
{
return currentFormTag;
- }
-
- /**
- * Gets the SubTaskName attribute of the StrutsFormSubTask object
- *
- * @return The SubTaskName value
- */
- public String getSubTaskName()
- {
- return SUBTASK_NAME;
}
/**
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel