Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/dd
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8552/modules/ejb/src/xdoclet/modules/ejb/dd

Modified Files:
        EjbDotXmlSubTask.java 
Log Message:
using consants for getting and comparing the ejbSpec parameter

Index: EjbDotXmlSubTask.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/dd/EjbDotXmlSubTask.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** EjbDotXmlSubTask.java       1 Mar 2005 21:56:59 -0000       1.16
--- EjbDotXmlSubTask.java       1 Mar 2005 23:36:51 -0000       1.17
***************
*** 7,10 ****
--- 7,12 ----
  import xdoclet.XDocletException;
  import xdoclet.XDocletMessages;
+ import xdoclet.modules.ejb.EjbDocletTask;
+ import xdoclet.modules.ejb.EjbTagsHandler;
  import xdoclet.modules.ejb.XDocletModulesEjbMessages;
  
***************
*** 217,226 ****
      public void execute() throws XDocletException
      {
!         if (getContext().getConfigParam("EjbSpec").equals("1.1")) {
              setPublicId(DD_PUBLICID_11);
              setSystemId(DD_SYSTEMID_11);
              setDtdURL(getClass().getResource(DTD_FILE_NAME_11));
          }
!         else if (getContext().getConfigParam("EjbSpec").equals("2.1")) {
              setSchema(XSD_LOCATION_21);
              setSchemaURL(getClass().getResource(XSD_FILE_NAME_21));
--- 219,230 ----
      public void execute() throws XDocletException
      {
!         String ejbSpec = EjbTagsHandler.getEjbSpec();
! 
!         if (ejbSpec.equals(EjbDocletTask.EjbSpecVersion.EJB_1_1)) {
              setPublicId(DD_PUBLICID_11);
              setSystemId(DD_SYSTEMID_11);
              setDtdURL(getClass().getResource(DTD_FILE_NAME_11));
          }
!         else if (ejbSpec.equals(EjbDocletTask.EjbSpecVersion.EJB_2_1)) {
              setSchema(XSD_LOCATION_21);
              setSchemaURL(getClass().getResource(XSD_FILE_NAME_21));



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to