cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/ant AntBuildGenerator.java
Date Sat, 17 Apr 2004 17:26:45 GMT
antonio     2004/04/17 10:26:45

  Modified:    src/blocks/scratchpad/java/org/apache/cocoon/ant
                        AntBuildGenerator.java
  Log:
  Code use ""
  
  Revision  Changes    Path
  1.4       +14 -15    cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/ant/AntBuildGenerator.java
  
  Index: AntBuildGenerator.java
  ===================================================================
  RCS file: /home/cvs//cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/ant/AntBuildGenerator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AntBuildGenerator.java	17 Apr 2004 11:32:24 -0000	1.3
  +++ AntBuildGenerator.java	17 Apr 2004 17:26:45 -0000	1.4
  @@ -36,7 +36,6 @@
   import org.apache.cocoon.environment.http.HttpContext;
   import org.apache.cocoon.generation.Generator;
   import org.apache.cocoon.xml.XMLConsumer;
  -import org.apache.commons.lang.StringUtils;
   import org.apache.tools.ant.BuildEvent;
   import org.apache.tools.ant.BuildListener;
   import org.apache.tools.ant.Project;
  @@ -83,8 +82,8 @@
       private static final AttributesImpl MSSG_ATTRS = new AttributesImpl();
       private static final AttributesImpl NAME_ATTRS = new AttributesImpl();
       static {
  -        MSSG_ATTRS.addAttribute(StringUtils.EMPTY, PRIORITY, PRIORITY, CDATA, null);
  -        NAME_ATTRS.addAttribute(StringUtils.EMPTY, NAME, NAME, CDATA, null);
  +        MSSG_ATTRS.addAttribute("", PRIORITY, PRIORITY, CDATA, null);
  +        NAME_ATTRS.addAttribute("", NAME, NAME, CDATA, null);
       }
   
       /** the build file */
  @@ -181,7 +180,7 @@
           }
           String target = ObjectModelHelper.getRequest(aMap).getParameter(TARGET);
           if (target == null) {
  -            target = StringUtils.EMPTY;
  +            target = "";
           }
           myThreadTarget.set(target);
           myThreadPriorityLevel.set(new Integer(priorityLevel));
  @@ -208,7 +207,7 @@
               theProject.init();
               ProjectHelper helper = ProjectHelper.getProjectHelper();
               helper.parse(theProject, myBuildFile);
  -            if (target.equals(StringUtils.EMPTY)) {
  +            if (target.equals("")) {
                   target = theProject.getDefaultTarget();
               }
               if (getLogger().isDebugEnabled()) {
  @@ -220,7 +219,7 @@
               getLogger().error(e.getMessage(), e);
               while (!myStack.isEmpty()) {
                   String tag = (String) myStack.pop();
  -                myConsumer.endElement(StringUtils.EMPTY, tag, tag);
  +                myConsumer.endElement("", tag, tag);
               }
           } finally {
               myConsumer.endDocument();
  @@ -233,7 +232,7 @@
        */
       public void buildStarted(BuildEvent anEvent) {
           try {
  -            myConsumer.startElement(StringUtils.EMPTY, BUILD, BUILD, EMPTY_ATTRS);
  +            myConsumer.startElement("", BUILD, BUILD, EMPTY_ATTRS);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  @@ -250,7 +249,7 @@
        */
       public void buildFinished(BuildEvent anEvent) {
           try {
  -            myConsumer.endElement(StringUtils.EMPTY, BUILD, BUILD);
  +            myConsumer.endElement("", BUILD, BUILD);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  @@ -270,7 +269,7 @@
           }
           try {
               NAME_ATTRS.setValue(0, anEvent.getTarget().getName());
  -            myConsumer.startElement(StringUtils.EMPTY, TARGET, TARGET, NAME_ATTRS);
  +            myConsumer.startElement("", TARGET, TARGET, NAME_ATTRS);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  @@ -288,7 +287,7 @@
               return;
           }
           try {
  -            myConsumer.endElement(StringUtils.EMPTY, TARGET, TARGET);
  +            myConsumer.endElement("", TARGET, TARGET);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  @@ -308,7 +307,7 @@
           }
           try {
               NAME_ATTRS.setValue(0, anEvent.getTask().getTaskName());
  -            myConsumer.startElement(StringUtils.EMPTY, TASK, TASK, NAME_ATTRS);
  +            myConsumer.startElement("", TASK, TASK, NAME_ATTRS);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  @@ -326,7 +325,7 @@
               return;
           }
           try {
  -            myConsumer.endElement(StringUtils.EMPTY, TASK, TASK);
  +            myConsumer.endElement("", TASK, TASK);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  @@ -361,11 +360,11 @@
           MSSG_ATTRS.setValue(0, value);
           String message = anEvent.getMessage();
           try {
  -            myConsumer.startElement(StringUtils.EMPTY, MESSAGE, MESSAGE, MSSG_ATTRS);
  +            myConsumer.startElement("", MESSAGE, MESSAGE, MSSG_ATTRS);
               myConsumer.startCDATA();
               myConsumer.characters(message.toCharArray(), 0, message.length());
               myConsumer.endCDATA();
  -            myConsumer.endElement(StringUtils.EMPTY, MESSAGE, MESSAGE);
  +            myConsumer.endElement("", MESSAGE, MESSAGE);
           } catch (SAXException e) {
               getLogger().error(e.getMessage(), e);
               if (mySAXException == null) {
  
  
  

Mime
View raw message