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 name="Find Files">
  <jobs>
   <exists id="exists" file="data/demo*.rep"/>
   <foreach id="found">
    <values>
     <value value="${exists.exists}"/>
    </values>
     <xml>
      <xml>
       <echo text="found ${found.current}" />
      </xml>
     </xml>
   </foreach>
  </jobs>
 </sequential>
 


(c) Rob Gordon 2005 - 2009