<print-cache>

Purpose/Function

Prints out contents of a Trebuchet cache. Requires a cache reference from the environment.

Printing can be to stdout, log4j or to a file.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

cache

ncsa.tools.trebuchet.core.cache.OperationCache

(required)

cache whose contents is to be printed

file

java.lang.String

null

file path to write to

full

boolean

false

print full line (default is an abbreviated form of the line)

stdout

boolean

true

if there is no file, print to stdout; if false, uses the log4j logger

Elements

None.

ReturnValues

None.

NOTES

Examples

<ogrescript>
   ...
    <declare name="cache"/>
    <ls dir="file:/tmp/dir0">
   	<return-value assignedName="cache" defaultName="listCache"/>
    </ls>
    <print-cache cache="${cache}"/>
   ...	
</ogrescript>
  • No labels