ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: checking is a wildcard file exist
Date Wed, 29 Sep 2004 15:09:47 GMT
<target name="check">
  <pathconvert property="found" setonempty="false"
pathsep=" ">
    <path>
      <fileset dir="/folder/folder/xlf-files"
               includes="*.xlf" />
    </path>
  </pathconvert>
</target>

<target name="process" depends="check" if="found">
  <!-- do something -->
</target>

HTH,
Matt

--- Don Hill <dhill@eweb-service.com> wrote:

> Hi,
> 
> I am trying to determine if a file exist in a
> folder,
> I know I can  use the available for a file but I
> don't know the
> specific file name so for example I just want to
> check for any files
> with a ext of .xlf in folder
> /folder/folder/xlf-files, how would I do
> this, I just need to know if there exist one file.
> Thanks!
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message