<convert-cache>

Purpose/Function

Convert a List cache into a Copy cache. This is what ls-style Trebuchet operations do under the covers, but exposing this functionality at times may be useful. Requires references to both a List cache from a ls operation, plus an initialized Copy cache (with header in place). The latter will be fully populated after the task has completed.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

copyCache

ncsa.tools.trebuchet.core.cache.CopyCache

(required)

copy cache (with header) to write to

listCache

ncsa.tools.trebuchet.core.cache.ListCache

(required)

list cache to be used to create copy cache

allowPatternDuplicates

boolean

false

allow duplicate entries

flatten

boolean

false

flatten all paths into top level of target directory

targetExists

boolean

true

assume target exists

targetIsDirectory

boolean

true

target URI in cache header is a directory

Elements

TAG

TYPE

COUNT

DESCRIPTION

<configuration>

ncsa.tools.trebuchet.core.types.TrebuchetConfiguration

0:1

configuration to be used to initialize the converter

ReturnValues

None.

NOTES

Examples

<ogrescript>
   ...
   <convert-cache listCache="${listCache}" copyCache="${copyCache}"/>
   ...
</ogrescript>
  • No labels