Posts

Showing posts with the label ant

Ant Example: Check if a directory is empty or if specific file exists.

1. Check is empty directory:             <if>                  <length length="0" when="greater">                        <fileset dir="yourDirectory" followsymlinks="false"/>                  </length>                  <then>                       <!-- Dir Not Empty -->                  </then>          ...