On Wed, Mar 03, 2010 at 05:08:06PM -0800, Andy2008 wrote:
 
> I want to loop thru a list of directories and only call a target called "ABC"
> if a directory contains a "test.xml" file.  below is my initial code
> 
> <foreach target="ABC" param="ABCParam">
>       <path>
>                       <dirset dir="c:\temp"/>
>               </path>
> </foreach>
> 
> Do you have any ideas?

Hello,

<project default="main">
  <target name="main" depends="check" if="ok">
        <echo>
          it works.
        </echo>
  </target>
  <target name="check">
        <condition property="ok">
          <or>
                <available file="test.xml" filepath="/home/powem/src/php"/>
                <available file="test.xml" filepath="/home/powem/src/java"/>
          </or>
        </condition>
  </target>
</project>


Thanks.

mp

-- 
Michael Powe            mich...@trollope.org            Naugatuck CT USA


 If you can't learn to do it well, learn to enjoy doing it badly.

Attachment: pgptp269VChj7.pgp
Description: PGP signature

Reply via email to