User: rinkrank
Date: 02/05/30 11:39:04
Modified: modules/exolab/src/xdoclet/modules/exolab/castor/ejb
CastorSubTask.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.4 +1 -13
xdoclet/modules/exolab/src/xdoclet/modules/exolab/castor/ejb/CastorSubTask.java
Index: CastorSubTask.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/exolab/src/xdoclet/modules/exolab/castor/ejb/CastorSubTask.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- CastorSubTask.java 28 May 2002 22:58:07 -0000 1.3
+++ CastorSubTask.java 30 May 2002 18:39:04 -0000 1.4
@@ -15,12 +15,10 @@
* @author Dmitri Colebatch ([EMAIL PROTECTED])
* @created October 7, 2001
* @xdoclet:subtask display-name="Castor Mapping" name="castormapping"
parent="xdoclet.modules.ejb.EjbDocletTask"
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class CastorSubTask extends XmlSubTask
{
- public final static String SUBTASK_NAME = "castorMapping";
-
private final static String MAPPING_DD_PUBLICID = "-//EXOLAB/Castor Mapping DTD
Version 1.0//EN";
private final static String MAPPING_DD_SYSTEMID =
"http://castor.exolab.org/mapping.dtd";
@@ -38,15 +36,5 @@
setDestinationFile(GENERATED_FILE_NAME);
setPublicId(MAPPING_DD_PUBLICID);
setSystemId(MAPPING_DD_SYSTEMID);
- }
-
- /**
- * Gets the SubTaskName attribute of the CastorSubTask 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