Yeah, create a .properties file, have your key, value pairs in it. Write a
simple java program like this at first to see how it works:
import java.util.ResourceBundle;
public class ConfigRead
{
public static ResourceBundle confdetails=ResourceBundle.getBundle("
JDomTrial.myconffile");
public static void main(String args[])
{
String inputdir=getConfValue("MyConfiguration");
System.out.println("input directory="+inputdir);
}
public static String getConfValue(String key)
{
String value="";
if(!key.equals(null) && !key.equals(""))
{
value=confdetails.getString(key);
}
return value;
}
}
On 6/5/07, Asaf Paris Mandoki <[EMAIL PROTECTED]> wrote:
Is there a standard way to read properties files I create? Maybe a
jakarta commons library?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sometimes I go about in pity for myself, and all the while, a great wind
carries me across the sky.