commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly SuiteTag.java
Date Tue, 15 Oct 2002 19:10:37 GMT
morgand     2002/10/15 12:10:37

  Modified:    latka/src/java/org/apache/commons/latka/jelly SuiteTag.java
  Log:
  modified behaviour of default listener to more closely approximate
  previous Latka implementation
  
  Revision  Changes    Path
  1.20      +10 -6     jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/SuiteTag.java
  
  Index: SuiteTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/SuiteTag.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SuiteTag.java	11 Oct 2002 22:02:12 -0000	1.19
  +++ SuiteTag.java	15 Oct 2002 19:10:37 -0000	1.20
  @@ -122,14 +122,18 @@
           eventInfo.suiteCompleted(new SuiteCompletedEvent());
           JellyUtils.getInstance().removeLatkaEventInfo(getContext());
   
  -        if (eventInfo.didSuiteSucceed() == false && defaultListener == true) {
  +        if (defaultListener == true) {
               Latka latka = new Latka();
               String transformedReport = 
  -                latka.transformXML(((XMLReporter) listener).getDocumentAsString());
  +              latka.transformXML(((XMLReporter) listener).getDocumentAsString());
   
  +            System.out.println(transformedReport);
   
  -            throw new LatkaException("SUITE FAILED: \n" + transformedReport);
  +            if (eventInfo.didSuiteSucceed() == false) {
  +                throw new LatkaException("SUITE FAILED");
  +            }
           }
  +
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message