User: ara_e_w 
  Date: 02/05/31 13:43:59

  Modified:    modules/web/src/xdoclet/modules/web JspTaglibSubTask.java
                        WebXmlSubTask.java
  Log:
  @msg:bundle refactoring
  
  Revision  Changes    Path
  1.5       +4 -5      
xdoclet/modules/web/src/xdoclet/modules/web/JspTaglibSubTask.java
  
  Index: JspTaglibSubTask.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/web/src/xdoclet/modules/web/JspTaglibSubTask.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -w -r1.4 -r1.5
  --- JspTaglibSubTask.java     30 May 2002 18:39:06 -0000      1.4
  +++ JspTaglibSubTask.java     31 May 2002 20:43:59 -0000      1.5
  @@ -4,8 +4,8 @@
    */
   package xdoclet.modules.web;
   
  -import java.io.File;
   import xdoclet.XDocletException;
  +import xdoclet.XDocletMessages;
   
   import xdoclet.XmlSubTask;
   import xdoclet.util.Translator;
  @@ -16,7 +16,7 @@
    * @author            Ara Abrahamian ([EMAIL PROTECTED])
    * @created           July 12, 2001
    * @xdoclet:subtask   display-name="JSP Taglib" name="jsptaglib" 
parent="xdoclet.modules.web.WebDocletTask"
  - * @version           $Revision: 1.4 $
  + * @version           $Revision: 1.5 $
    */
   public class JspTaglibSubTask extends XmlSubTask
   {
  @@ -315,7 +315,7 @@
           super.validateOptions();
   
           if (getShortname() == null || getShortname().trim().equals("")) {
  -            throw new 
XDocletException(Translator.getString("parameter_missing_or_empty", new 
String[]{"shortName"}));
  +            throw new XDocletException(Translator.getString(XDocletMessages.class, 
XDocletMessages.PARAMETER_MISSING_OR_EMPTY, new String[]{"shortName"}));
           }
       }
   
  @@ -353,8 +353,7 @@
        */
       protected void engineStarted() throws XDocletException
       {
  -        System.out.println(Translator.getString("generating_something",
  -            new String[]{getDestinationFile().toString()}));
  +        System.out.println(Translator.getString(XDocletMessages.class, 
XDocletMessages.GENERATING_SOMETHING, new String[]{getDestinationFile().toString()}));
       }
   
   
  
  
  
  1.4       +3 -3      xdoclet/modules/web/src/xdoclet/modules/web/WebXmlSubTask.java
  
  Index: WebXmlSubTask.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/web/src/xdoclet/modules/web/WebXmlSubTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -r1.3 -r1.4
  --- WebXmlSubTask.java        30 May 2002 18:39:06 -0000      1.3
  +++ WebXmlSubTask.java        31 May 2002 20:43:59 -0000      1.4
  @@ -4,10 +4,10 @@
    */
   package xdoclet.modules.web;
   
  -import java.io.File;
   import java.util.ArrayList;
   
   import xdoclet.XDocletException;
  +import xdoclet.XDocletMessages;
   import xdoclet.XmlSubTask;
   import xdoclet.util.Translator;
   
  @@ -17,7 +17,7 @@
    * @author            Ara Abrahamian ([EMAIL PROTECTED])
    * @created           June 19, 2001
    * @xdoclet:subtask   display-name="web.xml" name="deploymentdescriptor" 
parent="xdoclet.modules.web.WebDocletTask"
  - * @version           $Revision: 1.3 $
  + * @version           $Revision: 1.4 $
    */
   public class WebXmlSubTask extends XmlSubTask
   {
  @@ -326,7 +326,7 @@
        */
       protected void engineStarted() throws XDocletException
       {
  -        System.out.println(Translator.getString("generating_something", new 
String[]{getDestinationFile()}));
  +        System.out.println(Translator.getString(XDocletMessages.class, 
XDocletMessages.GENERATING_SOMETHING, new String[]{getDestinationFile()}));
       }
   
       /**
  
  
  

_______________________________________________________________

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

Reply via email to