findparentdir task


Find parent directory containing a given file.


Parameter name Description Mandatory
filename file name to find true
property property name where result will be stored true
haltonmissing Specifiy if we should stop when parent directory doesn't contain the requested filename Default: true
haltonfirstfound Specify if we should stop when first requested filename is found. Set it to false if you want to find the highest directory containing the requested file. Default: false


Find the highest module.ivy
  <ea:findparentdir filename="module.ivy" property="highest.parent.module.ivy"/>
Locate the first module.ivy we assume that a user can be in a subdirectory of the project
  <ea:findparentdir filename="module.ivy" property="highest.parent.module.ivy" haltonfirstfound="true"/>