commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: PropertiesConfiguration: about properties referencing other properties
Date Tue, 06 Nov 2007 10:53:25 GMT
nocturna_gr wrote:
> 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.prope
>         rties"));
> 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?

Define RES_DIR! I cannot see that one anywhere. Or did you intended to use BASE_DIR? ;)

- Jörg

BTW, please ask such questions on the user's list ... thanks!

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


Mime
View raw message