ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Petterson \(KI/EAB\)" <>
Subject Delete files if error log exist
Date Tue, 06 Feb 2007 18:57:03 GMT

I would like to confirm with you experts if I can write ( as below) to
delete some files if an
error log exist. Or is there a better way?



<available file="${log.dir}/${log}" type="file"
        <fail message="ERROR: Probable errors in the mom. Check
'error.log' in ${log.dir}" if="error.log.exist">
         <!--When generation fails. Remove all files since
we don't want the wrong files to be checked in.-->
          <fileset dir="${output.dir}/${gen.pkg}" includes="**/*.java"/>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message