You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

<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>
   ...
    <ls dir="file:/tmp/dir0">
   	<return-value assignedName="cache" defaultName="listCache"/>
    </ls>
    <print-cache cache="${cache}"/>
   ...	
</ogrescript>
  • No labels