commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nocturna_gr <kostaspa...@yahoo.gr>
Subject PropertiesConfiguration: about properties referencing other properties
Date Tue, 06 Nov 2007 10:43:28 GMT

Hi,
i have this properies file:
BASE_DIR=C:/Documents and Settings/paxosk/Desktop/projects/SQOSS/src/
LOG_MAIL_FILE=${RES_DIR}resources/logs/MailInserter.txt

and this code:
    public static void main(String[] args) throws Exception
    {
        PropertiesConfiguration conf=new PropertiesConfiguration();
        conf.load(new FileInputStream("C:/Documents and
Settings/paxosk/Desktop/projects/SQOSS/src/resources/all.properties"));
        System.err.println((String)conf.getProperty("LOG_MAIL_FILE"));
    }

The problem is that it prints:
${RES_DIR}resources/logs/MailInserter.txt, without parsing the RES_DIR...
How can i fix that?

Thanks

-- 
View this message in context: http://www.nabble.com/PropertiesConfiguration%3A-about-properties-referencing-other-properties-tf4757237.html#a13604116
Sent from the Commons - Dev mailing list archive at Nabble.com.


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


Mime
View raw message