ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: How do I load a wilcard properties file?
Date Thu, 23 May 2002 20:25:33 GMT
--- "Sayatovic, Brian" <Brian.Sayatovic@divine.com> wrote:
> I have a properties file that will be of the form "*version.properties".
> How can I load properties form this file into Ant?  I don't know what
> the prefix will be and there *should* only be one instance of that file
> in the directory I want to search.  I just don't know the entire name of
> the file is going to be.

Use <fileset>, then <pathconvert> that into a property and reference the
property in your <property file=.../>. (You might also want to add some
error-checking to cover your "should" :)

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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


Mime
View raw message