-----Original Message----- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 11:05 AM To: 'Ant Users List' Subject: RE: Verifying existence of files under a directory
-----Original Message----- From: Rohit P [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 10:16 AM To: Ant Users List Subject: Verifying existence of files under a directory /* But before i do the 'concat' action i need to verify if there are files under ${REPORTS_DIR}. Can you let me know the ways to check if *.csv files exist under ${REPORTS_DIR} before concatenating them into 'abc.csv'? */ two possible solutions = ... another one = 3. <pathconvert property="filesfound" setonempty="false"> <fileset dir="${REPORTS.DIR}" includes="**/*.bla"/> </pathconvert> and put your concat action in a target <target name="concat" if=filesfound"> ... </target> Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]