forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
Subject Re: forrest.properties vs forrest.properties.xml
Date Thu, 21 Feb 2008 11:10:51 GMT
On Thu, 2008-02-21 at 20:37 +1100, David Crossley wrote:
> Thorsten Scherler wrote:
> > Thorsten Scherler wrote:
> > 
> > Actually doing a wee bit research I wonder why we are not using the
> > properties dtd from sun:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
> > <properties>
> >     <entry key="plugin.TestPlugin">com.plugin.test.TestPluginModule</entry>
> >     <entry key="messages.TestPlugin">TestPluginMessages.properties</entry>
> > </properties>
> > 
> > This has the benefit to do a
> > Properties properties = new Properties();
> > try {
> >     InputStream xmlStream = getClass().getResourceAsStream("forrest.properties.xml");
> >     if( xmlStream == null ) {
> >          //throw some error
> >     }            
> >     properties.loadFromXML(xmlStream);
> > } catch (IOException exception) {
> >     // throw exception
> > }
> 
> Sure.

Hmm, I think that is not that easy though since there is code that is
using our custom dtd. 

Maybe Ross (as I can recall the first in using it) can tell us why we
did not used the java one.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Mime
View raw message