commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/task JellyTask.java
Date Sat, 05 Oct 2002 13:21:14 GMT
jefft       2002/10/05 06:21:14

  Modified:    jelly/src/java/org/apache/commons/jelly/task JellyTask.java
  Log:
  flush() the output stream instead of close()'ing it. Closing System.out isn't a
  good idea :) and in general, the owner of a stream should control it's
  lifecycle, not 3rd party code.
  
  Revision  Changes    Path
  1.8       +1 -1      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/task/JellyTask.java
  
  Index: JellyTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/task/JellyTask.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JellyTask.java	27 Aug 2002 14:04:28 -0000	1.7
  +++ JellyTask.java	5 Oct 2002 13:21:13 -0000	1.8
  @@ -79,7 +79,7 @@
               JellyContext context = getJellyContext();
               context.setVariable( "project", project );
               script.run( context, getXMLOutput() );
  -            getXMLOutput().close();
  +            getXMLOutput().flush();
           }
           catch (Exception e) {
               throw new BuildException(e, location);
  
  
  

--
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