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:[EMAIL PROTECTED]">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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>