ant-user mailing list archives

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

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?

Cheers,

//mikael 


<available file="${log.dir}/${log}" type="file"
property="error.log.exist"/>
        <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.-->
         <delete>
          <fileset dir="${output.dir}/${gen.pkg}" includes="**/*.java"/>
         </delete>
       </fail>


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