exists

Description

Test if a file exists. This job will flag complete if the file exists, not complete if it doesn't, and will signal an exception if the path to the file does not exist.

Properties

NameDescriptionRequired
name A name, can be any text. No.
file The file, can contain wildcard characters. Yes.
exists The files that match the file spec. R/O.

Example

 <sequential>
   <exists id="exists" file="data/demo*.rep"/>
   <foreach id="found" values="${exists.exists}">
     <child>
       <echo text="found ${found.current}" />
     </child>
   </foreach>
 </sequential>
 


(c) Rob Gordon 2005