Re: Parsing Properties files
Lars George <[email protected]> Fri, 15 Jul 2005 14:19:06 -0700
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Keats,
> I actually had a PropertyDirective years ago that did just what you are
> saying, but I've lost track of the code. (It never got committed to the
> core because nobody expressed interest.) There is some code in the core
> that parses expressions from the webmacro.properties file. I can point
> you to that if it is helpful.
Any pointer is helpful :)
> As I recall, all I did was parse the properties as a template and then
> pipe the results into a properties object via the load() method.
Hmm, I did not even consider parsing the file, but you are right, that
is a good thing.
> I could probably resurrect this code for you if that would meet your needs.
Either or, the code would be great, but also what you propose below is
making sense. Especially with the include in between, that would
basically do what I need easily but has even more power for other uses.
I am all for it.
> Of course you could the #include with this as well:
>
> #properties $user {
> #include "user.properties"
> ...
What do you suggest how we go from here?
Thanks,
Lars
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click