Re: Parsing Properties files
Keats Kirsch <[email protected]> Fri, 15 Jul 2005 17:38:48 -0400
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
> What do you suggest how we go from here?
If you're in a hurry, give it a shot yourself. You can look at a simple
directive, like SetblockDirective, for a starting point and I can give
you assistance with specific questions.
If you're not in a hurry, I'll can crank out something for you, but it
may take a week or two. I'm pretty swamped at the moment.
Keats
Lars George wrote:
> 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