ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Checking existence of folders with a particular naming convention | Need Help
Date Fri, 24 Aug 2007 09:53:30 GMT


>-----Urspr√ľngliche Nachricht-----
>Von: Utpal Sen [] 
>Gesendet: Freitag, 24. August 2007 11:45
>Betreff: Checking existence of folders with a particular 
>naming convention | Need Help
>I wanted to check for the existence of folders having a fixed 
>pattern as
>part of their name.
>I checked the <available> task but here I cannot pass a 
>regular expression
>or wildcard character in the attribute 'file'.
>Following is my code (which is not working):
><target name="clean">
><available property="isadir"
>                   file="*utpal_***"
>                type="dir"/>
><target name="doc" depends="clean" if="isadir">
>        <echo>folder exists</echo>
>I have folders named utpal_004500 and utpal_004600. I want to 
>check if any
>folder that starts with the name utpal_ exists.
>Kindly let me know how I can achieve this.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message