ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: ANT Question: How do I check for the presence of JAR files in a directory
Date Fri, 07 Dec 2007 18:01:28 GMT
To be honest, not sure.  I just simply referred to the Resource 
Collections from the manual/index.html page

Eric Wood wrote:
> Thanks, that works. 
>
> Is there something further I can read on resources and how to use them.
> I read the manual page and was a little confussed.  Is anybody aware of
> some good documentation on this topic with some examples.
>
> Eric 
>
> -----Original Message-----
> From: Scot P. Floess [mailto:floess@mindspring.com] 
> Sent: Friday, December 07, 2007 12:39 PM
> To: Ant Users List
> Subject: Re: ANT Question: How do I check for the presence of JAR files
> in a directory
>
> Checkout resource collections...that may do what you want...
>
> <resourcecount  property="someproperty">
>     <fileset  dir = "somedir"  includes = "*.jar"/> </resourcecount>
>
> someproperty will be set with the count if any jar files exist in
> somedir...
>
> Eric Wood wrote:
>   
>> I'm want to set a property to check later on if there are any jar 
>> files in a folder/directory. Available does quite seem right since I 
>> want to wildcard for any jars. What is the best way to accomplish this
>>     
> task?
>   
>>  
>> Thanks for you help, Eric
>>
>>   
>>     
>
> --
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
>
>
>   

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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