commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <sma...@lfjr.net>
Subject Re: Configuration: init problem
Date Wed, 10 Nov 2004 16:52:42 GMT
Javier wrote:
> 
> Thanks for your reply but..How sould my application
> know the file doesn´t exist ? Should check using
> File.exists or should use a Properties method that I
> unknow ?

We do not support optional files yet, you can use the following workaround:

File file = new File("a.ini");
file.createNewFile();
Configuration conf = new PropertiesConfiguration(file);

Emmanuel Bourg


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


Mime
View raw message