Cernunnos Manual


<print-stream>

Description:

Opens a PrintStream that writes to the specified file system location.

Reagents:

Name XPath Description Reagent Type Expected Type Required
ATTRIBUTE_NAME @attribute-name Optional name under which the new PrintStream will be registered as a request attribute. If omitted, the name 'Attributes.STREAM' will be used. PHRASE java.lang.String No
FILE @file File system path to which the PrintStream will be written. It may be absolute or relative. If relative, it will be evaluated from the directory in which Java is executing. PHRASE java.lang.String Yes
SUBTASKS * The set of tasks that are children of this task. NODE_LIST java.util.List No

Examples:

Writes 'Hello World!' to the file 'hello.txt':

 
       
        <print-stream file="hello.txt"> 
          <echo>Hello World!</echo> 
        </print-stream>