commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core ThreadTag.java
Date Mon, 07 Oct 2002 15:02:50 GMT
jstrachan    2002/10/07 08:02:50

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/core
                        ThreadTag.java
  Log:
  Allow the <thread> tag to not require an xmlOutput tag, which will just output its
body to System.out if no file or XMLOutput is specified
  
  Revision  Changes    Path
  1.2       +4 -5      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/ThreadTag.java
  
  Index: ThreadTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/ThreadTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ThreadTag.java	26 Jun 2002 09:14:31 -0000	1.1
  +++ ThreadTag.java	7 Oct 2002 15:02:49 -0000	1.2
  @@ -68,23 +68,22 @@
     *
     * @author <a href="mailto:vinayc@apache.org">Vinay Chandran</a>
     */
  -public class ThreadTag extends TagSupport 
  -{
  +public class ThreadTag extends TagSupport  {
       /** Thread Name */
       private String name = null;
       /** the destination of output */
       private XMLOutput xmlOutput;
       
   
  -    public ThreadTag()
  -    {
  +    public ThreadTag() {
       }
   
       // Tag interface
       //------------------------------------------------------------------------- 
       public void doTag(final XMLOutput output) throws Exception {
           if ( xmlOutput == null ) {
  -            throw new MissingAttributeException("xmlOutput");
  +            // lets default to system.out
  +            xmlOutput = XMLOutput.createXMLOutput( System.out );
           }
           
           Thread thread = new Thread(
  
  
  

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