ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: multiple file check
Date Thu, 06 Feb 2003 19:08:31 GMT
Behold the power of selectors ;-) --DD

-----Original Message-----
From: Dan Gardner [mailto:Dan.Gardner@emap.com] 
Sent: Thursday, February 06, 2003 12:58 PM
To: 'Ant Users List'
Subject: RE: multiple file check

Thanks this is working a treat;

>>Martin, I suspect your option would work as well, but its nice to keep it
purely in ANT until I *have* to get more complex :).

  <target name="look.for.conflict">        
    <fileset dir="${conflict.dir}" includes="**/*.*" id="conflict.files" >
      <present targetdir="${patch.dir}/${cvspackage}/${patch.name}"/>
    </fileset>
    <pathconvert property="conflict.files" refid="conflict.files" />
    <echo message="conflict.files:${conflict.files}" level="info"/>
    <condition property="conflict.files.exist">
      <not>
        <equals arg1="${conflict.files}" arg2=""/>
      </not>
    </condition>    
  </target>
_______________________________
Dan Gardner        Emap IT - UK

Mime
View raw message